MCPcopy Create free account
hub / github.com/pytorch/executorch / debug

Method debug

exir/tensor.py:241–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

239 return self.shape_dynamism == TensorShapeDynamism.DYNAMIC_UNBOUND
240
241 def debug(self) -> str:
242 return (
243 f"TensorSpec(id={id(self)}, const={self.const}, scalar_type={self.scalar_type}"
244 + f", allocated_memory={self.allocated_memory}, mem_id={self.mem_id}"
245 + f", mem_offset={self.mem_offset}, lifetime={self.lifetime}"
246 + f", shape_dynamism={self.shape_dynamism}"
247 + (f", shape={self.shape}")
248 + ")"
249 )
250
251 def __repr__(self) -> str:
252 """

Callers 15

greedyFunction · 0.80
__call__Method · 0.80
naiveFunction · 0.80
_handle_submoduleFunction · 0.80
__call__Method · 0.80
callMethod · 0.80
callMethod · 0.80

Calls

no outgoing calls

Tested by 5

execute_cmdFunction · 0.64
add_stageMethod · 0.64
pop_stageMethod · 0.64
assert_outputs_equalMethod · 0.64