Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-6071

Narrow the return type annotation in 'VariableTracker::call_obj_hasattr'

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • PyTorch Sprint 17

      Narrow the return type annotation in "VariableTracker::call_obj_hasattr". Its return type is VariableTracker but it can be narrowed to be a ConstantVariable as it only returns True/False.

      Since VariableTracker is return type of ConstantVariable.create() . For safety , overloaded ConstantVariable.create is added

       

      Version numbers (base image, wheels, builder, etc):

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

              rh-ee-krastogi Kushagra Rastogi
              rh-ee-krastogi Kushagra Rastogi
              PyTorch Compile
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: