Skip to content

fix: Use is_tensor_like instead of instance(Tensor, · )#583

Merged
PierreQuinton merged 5 commits intomainfrom
use-is-tensor-like
Feb 19, 2026
Merged

fix: Use is_tensor_like instead of instance(Tensor, · )#583
PierreQuinton merged 5 commits intomainfrom
use-is-tensor-like

Conversation

@PierreQuinton
Copy link
Contributor

@PierreQuinton PierreQuinton commented Feb 19, 2026

Fixes:

Some interaction with pytorch/pytorch#175324, but can't wait for a fix.

The current state is only one remaining isinstance in tests.conftests.py which is non-critical (for printing purposes).

…f the operations where not implemented but allow custom implementations.
…`require_grad` field might not exist in something that is not a `Tensor`. I'm not sure the status of this in torch so we should investigate some more.
@PierreQuinton PierreQuinton added the cc: fix Conventional commit type for bug fixes of the actual library (changes to src). label Feb 19, 2026
@PierreQuinton PierreQuinton merged commit 448cca1 into main Feb 19, 2026
16 checks passed
@PierreQuinton PierreQuinton deleted the use-is-tensor-like branch February 19, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: fix Conventional commit type for bug fixes of the actual library (changes to src).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments