Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tensor Subclasses] Support func calling only Subclass(...) #1393

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Nov 6, 2024

  1. workaround for .__init__ call on the output of `_make_wrapper_subcl…

    …ass` lookaside
    
    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    e76a98c View commit details
    Browse the repository at this point in the history
  2. the test case works

    no `__torch_dispatch__` support at all.
    
    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    c6fce3a View commit details
    Browse the repository at this point in the history
  3. attribute access to subclass proxy seems functioning

    somehow, apparently
    
    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    af32361 View commit details
    Browse the repository at this point in the history
  4. simplify if-else in SubclassTensorProxy.__init__

    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    546fb10 View commit details
    Browse the repository at this point in the history
  5. stricter type check of tensors

    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    958d235 View commit details
    Browse the repository at this point in the history
  6. support MySubclass(...) called inside of torch.autograd.Function

    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    9900d33 View commit details
    Browse the repository at this point in the history
  7. explanation

    Signed-off-by: Masaki Kozuki <[email protected]>
    crcrpar committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    2e4ecad View commit details
    Browse the repository at this point in the history