Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ is_tensor
Method
is_tensor
exir/pass_base.py:145–146 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
143
return
self.data
144
145
def
is_tensor(self) -> bool:
146
return
isinstance(self.data, torch.Tensor)
147
148
# pyre-ignore
149
def
__iter__(self):
Callers
3
_patch_spec
Function · 0.45
get_runtime_input_count
Method · 0.45
facto_testcase_gen
Function · 0.45
Calls
no outgoing calls
Tested by
2
_patch_spec
Function · 0.36
get_runtime_input_count
Method · 0.36