(self)
| 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 | """ |
no outgoing calls