Skip to content

Commit

Permalink
fixed type in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Buethe committed Sep 29, 2023
1 parent c5c214d commit 4901445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnn/torch/weight-exchange/wexchange/torch/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def dump_torch_weights(where, module, name=None, verbose=False, **kwargs):
elif isinstance(module, torch.nn.Embedding):
return dump_torch_embedding_weights(where, module)
else:
raise ValueError(f'dump_tf_weights: layer of type {type(module)} not supported')
raise ValueError(f'dump_torch_weights: layer of type {type(module)} not supported')

def load_torch_weights(where, module):
""" generic function for loading weights of some torch.nn.Module """
Expand All @@ -209,4 +209,4 @@ def load_torch_weights(where, module):
elif isinstance(module, torch.nn.Embedding):
load_torch_embedding_weights(where, module)
else:
raise ValueError(f'dump_tf_weights: layer of type {type(module)} not supported')
raise ValueError(f'dump_torch_weights: layer of type {type(module)} not supported')

0 comments on commit 4901445

Please sign in to comment.