Skip to content

Commit

Permalink
fix: return numpy tensors from tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
SauravMaheshkar committed Sep 13, 2024
1 parent 76c05b2 commit 25c2bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jflux/conditioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def forward(self, text: list[str]) -> Array:
return_length=False,
return_overflowing_tokens=False,
padding="max_length",
return_tensors="pt",
return_tensors="np",
)

outputs = self.hf_module(
Expand Down

0 comments on commit 25c2bf1

Please sign in to comment.