Skip to content

Commit

Permalink
Read __class__.__name__ properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed May 9, 2023
1 parent a98263b commit cf61e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def eager_serving(self, inputs):
def get_serving_input_signature(self) -> List[Dict[str, tf.TensorSpec]]:
model_inputs = list(dict(inspect.signature(self.call).parameters).keys())
sig = {}
if self.__name__.endswith("ForMultipleChoice"):
if self.__class__.__name__.endswith("ForMultipleChoice"):
text_dims = 3
else:
text_dims = 2
Expand Down

0 comments on commit cf61e97

Please sign in to comment.