Skip to content

Commit

Permalink
use torch.tensor(), not torch.Tensor()
Browse files Browse the repository at this point in the history
  • Loading branch information
anferico committed Nov 14, 2024
1 parent a3d69a8 commit 40e26ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/mimi/modeling_mimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ def __init__(self, config: MimiConfig, epsilon: float = 1e-5):

self.codebook_size = config.codebook_size

self.register_buffer("initialized", torch.Tensor([True]))
self.register_buffer("initialized", torch.tensor([True]))
self.register_buffer("cluster_usage", torch.ones(config.codebook_size))
self.register_buffer("embed_sum", embed)
self._embed = None
Expand Down

0 comments on commit 40e26ae

Please sign in to comment.