diff options
Diffstat (limited to 'source/slang/slang-ir-pytorch-cpp-binding.cpp')
| -rw-r--r-- | source/slang/slang-ir-pytorch-cpp-binding.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/slang/slang-ir-pytorch-cpp-binding.cpp b/source/slang/slang-ir-pytorch-cpp-binding.cpp index 971e87a6f..d59d57474 100644 --- a/source/slang/slang-ir-pytorch-cpp-binding.cpp +++ b/source/slang/slang-ir-pytorch-cpp-binding.cpp @@ -263,8 +263,6 @@ static void generateCppBindingForFunc(IRFunc* func, DiagnosticSink* sink) oldParam->removeAndDeallocate(); } - auto allocator = builder.emitVar(builder.getType(kIROp_TorchKernelMemoryAllocatorType)); - for (auto block : func->getBlocks()) { for (auto inst : block->getChildren()) @@ -297,7 +295,7 @@ static void generateCppBindingForFunc(IRFunc* func, DiagnosticSink* sink) else if (auto getView = as<IRTorchTensorGetView>(inst)) { builder.setInsertBefore(getView); - auto makeView = builder.emitMakeTensorView(getView->getFullType(), allocator, inst->getOperand(0)); + auto makeView = builder.emitMakeTensorView(getView->getFullType(), inst->getOperand(0)); getView->replaceUsesWith(makeView); instsToRemove.add(getView); } |
