a104a7b0a2
Lint / lint (push) Has been cancelled
CI / MacOS (push) Has been cancelled
CI / Windows (push) Has been cancelled
Following the recent PrimType refactor, `nn.Tensor.dtype` returns a `PrimType` object instead of the documented string dtype value. This breaks consumers such as NumPy's astype. This PR returns the underlying dtype value and adds an assertion verifying that `Tensor.dtype` remains string-compatible.