CanCastΒΆ
Returns True if cast between data types can occur according to the casting rule.
Abstract Signature:
CanCast(from_: DType | Tensor, to: DType, casting: str = safe)
Returns True if cast between data types can occur according to the casting rule.
Abstract Signature:
CanCast(from_: DType | Tensor, to: DType, casting: str = safe)