ydshieh commited on
Commit
b5b1e4e
1 Parent(s): 860bfc4

initial commit

Browse files
Files changed (1) hide show
  1. modeling_tf_my_model.py +3 -0
modeling_tf_my_model.py CHANGED
@@ -1,4 +1,5 @@
1
  import tensorflow as tf
 
2
 
3
  from transformers.modeling_tf_utils import TFPreTrainedModel
4
 
@@ -25,9 +26,11 @@ class TFMyModel(TFMyModelPretrainedModel):
25
  dummy_inputs = {"hidden": hidden}
26
  return dummy_inputs
27
 
 
28
  def call(
29
  self,
30
  hidden,
31
  ):
 
32
  self.linear(hidden)
33
 
 
1
  import tensorflow as tf
2
+ from transformers.modeling_tf_utils import unpack_inputs
3
 
4
  from transformers.modeling_tf_utils import TFPreTrainedModel
5
 
 
26
  dummy_inputs = {"hidden": hidden}
27
  return dummy_inputs
28
 
29
+ @unpack_inputs
30
  def call(
31
  self,
32
  hidden,
33
  ):
34
+ breakpoint()
35
  self.linear(hidden)
36