MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / astype

Method astype

convert.py:537–542  ·  view source on GitHub ↗
(self, data_type: DataType)

Source from the content-addressed store, hash-verified

535 return ret
536
537 def astype(self, data_type: DataType) -> LazyTensor:
538 self.validate_conversion_to(data_type)
539
540 def load() -> Tensor:
541 return self.load().astype(data_type)
542 return LazyTensor(load, self.shape, data_type, f'convert({data_type}) {self.description}')
543
544 def transposed(self) -> LazyTensor:
545 def load() -> Tensor:

Callers

nothing calls this directly

Calls 2

LazyTensorClass · 0.70

Tested by

no test coverage detected