Akaash Parthasarathy
a104a7b0a2
Lint / lint (push) Has been cancelled
CI / MacOS (push) Has been cancelled
CI / Windows (push) Has been cancelled
[Fix][Relax] Return frontend tensor dtype value ( #20051 )
...
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.
2026-07-27 15:41:19 -04:00
..
2026-07-15 17:12:40 +08:00
2026-07-16 05:02:36 +08:00
2026-07-04 17:49:45 -04:00
2026-07-04 17:49:45 -04:00
2026-07-15 17:12:40 +08:00
2026-07-06 16:29:52 +08:00
2026-07-16 05:02:36 +08:00
2026-07-15 17:12:40 +08:00
2026-07-15 17:12:40 +08:00
2026-06-29 21:30:44 -04:00
2026-07-15 05:34:21 +08:00
2026-07-16 15:57:40 -04:00
2026-07-06 16:29:52 +08:00
2026-07-06 16:29:52 +08:00
2026-07-15 17:12:40 +08:00
2026-07-04 21:54:04 -04:00
2026-07-15 17:12:40 +08:00
2026-07-16 05:02:36 +08:00
2026-07-15 05:34:21 +08:00
2026-07-15 05:34:21 +08:00
2026-07-15 05:34:21 +08:00
2026-07-15 05:34:21 +08:00
2026-07-16 15:57:40 -04:00
2026-07-15 05:34:21 +08:00
2026-07-15 17:12:40 +08:00
2026-07-16 05:02:36 +08:00
2026-07-15 17:12:40 +08:00
2026-07-19 05:16:31 +08:00
2026-07-15 17:12:40 +08:00
2026-07-20 14:26:46 +08:00
2026-07-13 14:13:19 -04:00
2026-07-16 23:06:12 -04:00
2026-07-16 23:06:12 -04:00
2026-06-26 10:15:49 -04:00
2026-07-15 05:34:21 +08:00
2026-06-26 10:15:49 -04:00
2026-07-16 05:02:36 +08:00
2026-07-15 17:12:40 +08:00
2026-07-27 15:41:19 -04:00
2026-07-16 06:07:20 +08:00
2026-07-27 01:08:26 -04:00
2026-07-16 23:06:12 -04:00
2026-07-04 17:49:45 -04:00
2026-07-06 16:29:52 +08:00
2026-06-26 10:15:49 -04:00
2026-07-16 15:57:40 -04:00
2026-07-16 10:37:35 +08:00
2026-07-03 11:33:14 -04:00
2026-07-16 05:02:36 +08:00
2026-07-01 18:55:33 -04:00
2026-07-15 17:12:40 +08:00
2026-06-26 10:15:49 -04:00
2026-06-26 10:15:49 -04:00
2026-07-15 05:34:21 +08:00
2026-07-15 05:34:21 +08:00
2026-07-17 17:08:13 +08:00
2026-07-19 05:16:31 +08:00
2026-07-01 18:55:33 -04:00
2026-07-01 18:55:33 -04:00
2026-07-16 06:07:20 +08:00
2026-07-04 17:49:45 -04:00
2026-07-04 17:49:45 -04:00
2026-07-04 17:49:45 -04:00
2026-07-16 06:07:20 +08:00
2026-07-04 17:49:45 -04:00
2026-06-26 10:15:49 -04:00
2026-07-04 17:49:45 -04:00
2026-07-04 17:49:45 -04:00
2026-06-26 10:15:49 -04:00
2026-07-16 10:37:35 +08:00
2026-07-16 10:37:35 +08:00
2026-06-26 07:18:04 -04:00
2026-07-17 17:08:13 +08:00
2026-07-15 17:12:40 +08:00
2026-07-15 17:12:40 +08:00
2026-07-15 17:12:40 +08:00
2026-07-15 17:12:40 +08:00
2026-07-04 17:49:45 -04:00
2026-07-15 17:12:40 +08:00
2026-07-16 17:34:50 -04:00
2026-07-17 17:08:13 +08:00
2026-07-15 17:12:40 +08:00
2026-07-16 05:02:36 +08:00
2026-07-16 15:57:40 -04:00
2026-07-17 17:08:13 +08:00
2026-07-16 10:37:35 +08:00
2026-06-26 10:15:49 -04:00
2026-07-15 17:12:40 +08:00
2026-07-16 05:02:36 +08:00
2026-07-16 05:02:36 +08:00
2026-07-16 05:02:36 +08:00
2026-06-30 15:35:22 -04:00
2026-07-16 05:02:36 +08:00
2026-07-17 17:08:13 +08:00
2026-07-23 15:31:55 -04:00
2026-07-16 05:02:36 +08:00
2026-07-16 15:57:40 -04:00
2026-07-06 16:29:52 +08:00
2026-07-16 05:02:36 +08:00
2026-07-04 21:54:04 -04:00
2026-06-26 10:15:49 -04:00
2026-07-15 17:12:40 +08:00
2026-07-16 15:57:40 -04:00
2026-07-15 17:12:40 +08:00
2026-07-16 05:02:36 +08:00
2026-07-16 10:37:35 +08:00
2026-07-19 05:16:31 +08:00
2026-07-06 16:29:52 +08:00
2026-07-15 05:34:21 +08:00
2026-07-15 05:34:21 +08:00
2026-07-15 05:34:21 +08:00
2026-06-26 07:18:04 -04:00
2026-07-01 18:55:33 -04:00
2026-07-16 06:07:20 +08:00
2026-07-04 17:49:45 -04:00