(self, b:ConstType)
| 158 | # alu and const_like are used by the mixins |
| 159 | def alu(self, op: Ops, *src: Tensor) -> Tensor: return self._apply_uop(lambda *u: u[0].alu(op, *u[1:]), *src) |
| 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)) |
no test coverage detected