transformers
Fix: use `torch.from_numpy()` to create tensors for np.ndarrays
#33201
Merged

Fix: use `torch.from_numpy()` to create tensors for np.ndarrays #33201

shinyano
shinyano use torch.from_numpy for np.ndarrays
bff623c3
qubvel
qubvel approved these changes on 2024-09-02
amyeroberts
amyeroberts approved these changes on 2024-09-02
amyeroberts amyeroberts merged cff06aac into main 1 year ago
shinyano shinyano deleted the tensor_fix branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone