Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
sgugger
/
my-bert-model
like
1
Feature Extraction
Transformers
PyTorch
bert
custom_code
Model card
Files
Files and versions
Community
Train
Use this model
27a58f8
my-bert-model
/
modeling.py
sgugger
Fix syntax error
1ddc92c
over 2 years ago
raw
history
blame
No virus
179 Bytes
from
transformers
import
BertModel
class
MyBertModel
(
BertModel
):
def
forward
(
self, *args, **kwargs
):
print
(
"Success"
)
return
super
().forward(*args, **kwargs)