Skip to content

Commit

Permalink
Fix incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln committed Jun 23, 2023
1 parent abe7478 commit e5051f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ctranslate2/specs/model_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def __init__(self, tensor):
@classmethod
def from_numpy(cls, array):
tensor = torch.from_numpy(array)
return cls(array)
return cls(tensor)

def shape(self) -> List[int]:
return list(self.tensor.shape)
Expand Down

0 comments on commit e5051f9

Please sign in to comment.