MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / is_base_tensor

Method is_base_tensor

deepspeed/compile/util.py:387–388  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

385 def offload(self, argument):
386
387 def is_base_tensor(tensor):
388 return torch.is_tensor(a) and not a._is_view() and not hasattr(tensor, "ds_id")
389
390 base_tensor_ids = set()
391 for a in argument:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected