(dtype:DType, b:ConstType|UOp, device:str|tuple[str, ...]|None=None)
| 160 | def const_like(self, b:ConstType) -> Tensor: return Tensor(self.uop.const_like(b)) |
| 161 | @staticmethod |
| 162 | def const(dtype:DType, b:ConstType|UOp, device:str|tuple[str, ...]|None=None) -> Tensor: |
| 163 | return Tensor(b if isinstance(b, UOp) else UOp.const(dtype, b, device)) |
| 164 | @staticmethod |
| 165 | def unique_const(fill_value:ConstType|UOp, **kwargs) -> Tensor: |
| 166 | if isinstance(fill_value, UOp): return Tensor(fill_value, **kwargs) |
no test coverage detected