Can anyone guide me convert a DType.uint256 number to UInt256?
I failed to convert DType.uint256 to UInt256 with this code:
comptime layout = Layout.row_major(5)
tensor = LayoutTensor[DType.uint256, layout, MutAnyOrigin].stack_allocation()
tensor[0] = Scalar[DType.uint256](10)
var host_scalar: Scalar[DType.uint256] = tensor[0]
print("host_scalar =", host_scalar)
Error:
error: cannot implicitly convert 'LayoutTensor[DType.uint256, layout, MutAnyOrigin].element_type' value to 'UInt256'
var host_scalar: Scalar[DType.uint256] = tensor[0]
~~~~~~^~~