diff options
| author | Yong He <yonghe@outlook.com> | 2023-04-11 15:11:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-11 15:11:45 -0700 |
| commit | 7c3a40cf08091a6cf0ec2de1e9694c979fb5c551 (patch) | |
| tree | 7866ecc98be4742ec7528c524bc7a43e27f2be85 /source/slang/slang-ir.cpp | |
| parent | 54f112f8074c8ca490195c10db8c518cdc58546a (diff) | |
Small fixes to TorchTensor. (#2790)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 6ca05d2d6..bd2271953 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -2837,9 +2837,9 @@ namespace Slang (IRInst**)&elementType); } - IRTorchTensorType* IRBuilder::getTorchTensorType() + IRTorchTensorType* IRBuilder::getTorchTensorType(IRType* elementType) { - return (IRTorchTensorType*)getType(kIROp_TorchTensorType, 0, nullptr); + return (IRTorchTensorType*)getType(kIROp_TorchTensorType, 1, (IRInst**)&elementType); } IRDifferentialPairType* IRBuilder::getDifferentialPairType( |
