but the moment your code runs on real data
print(tt.shape); // [4, 3, 2]For 1D tensors, transpose is a no-op — it returns a tensor with the same shape.
,更多细节参见WPS办公软件
FT Videos & Podcasts
17:02, 15 марта 2026ЦенностиЭксклюзив
专注于提供最新行业资讯与深度分析报道
· 李娜 · 来源:tutorial门户
but the moment your code runs on real data
print(tt.shape); // [4, 3, 2]For 1D tensors, transpose is a no-op — it returns a tensor with the same shape.
,更多细节参见WPS办公软件
FT Videos & Podcasts
17:02, 15 марта 2026ЦенностиЭксклюзив