class_docstr: Represents a tensor subclass instance with a __torch_function__ override.
class_docstr_tok: ["Represents","a","tensor","subclass","instance","with","a","__torch_function__","override","."]
code: def var_getattr(self, tx, name):
      # [Note: __torch_function__] We currently only support attributes that are defined on
      # base tensors, custom attribute accesses will graph break.
      import torch
      from .builder import SourcelessBuilder
  
      if name in banned_attrs or not hasattr(torch.Tensor, name):
          unimplemented(
              f"Accessing {name} on a tensor subclass with a __torch_function__ override is not supported"
          )
  
      if _is_attr_overidden(tx, self, name):
          unimplemented(
              f"Accessing overridden method/attribute {name} on a tensor"
              " subclass with a __torch_function__ override is not supported"
          )
  
      if tx.output.torch_function_enabled:
          if self.source:
              install_guard(
                  AttrSource(
                      AttrSource(self.source, "__class__"), name
                  ).make_guard(GuardBuilder.FUNCTION_MATCH)
              )
          get_fn = SourcelessBuilder()(
              tx, getattr(torch.Tensor, name).__get__
          )
  
          return self.call_torch_function(
              tx,
              get_fn,
              TupleVariable([self.class_type_var()]),
              [self],
              {},
          )
      else:
          return super().var_getattr(tx, name)
  
imports: import inspect
  from typing import Dict, List
  import torch.utils._pytree
  from torch.overrides import _get_overloaded_args, get_default_nowrap_functions
  from ..exc import unimplemented
  from ..guards import GuardBuilder, install_guard
  from ..source import AttrSource, GlobalSource
  from ..utils import has_torch_function, is_tensor_base_attr_getter
  from .base import VariableTracker
  from .constant import ConstantVariable
  from .lists import TupleVariable
  from .tensor import TensorSubclassVariable, TensorVariable
  from .user_defined import UserDefinedObjectVariable
label_desc: Use image node_id 7 for calling the TensorWithTFOverrideVariable obj's underlying member method code with example usage: obj.var_getattr(tx, name) and returns: self, super