Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
mramazan
/
AnimeRecBERT
like
2
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
5724e66
AnimeRecBERT
/
models
/
base.py
mramazan
Upload 41 files
0edbb0d
verified
15 days ago
raw
Copy download link
history
blame
Safe
243 Bytes
import
torch.nn
as
nn
from
abc
import
*
class
BaseModel
(nn.Module, metaclass=ABCMeta):
def
__init__
(
self, args
):
super
().__init__()
self.args = args
@classmethod
@abstractmethod
def
code
(
cls
):
pass