minnervva / torchdetscan

This is a tool for finding non-deterministic functions in your pytorch code.
https://github.com/minnervva/torchdetscan
MIT License
1 stars 1 forks source link

Add support for catching __get_item__ in linter #52

Closed markcoletti closed 3 months ago

markcoletti commented 3 months ago

There is one non-deterministic function that needs to be checked for: torch.Tensor.__getitem__() when torch.use_deterministic_algorithms(True). Currently the linter does not (yet) support that.

markcoletti commented 3 months ago

Closed because there is no good way using AST to detect this; this is a run-time thing, and so outside the scope of a static linker.