Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed May 15, 2024
1 parent 9d6d34c commit 4778eac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions platforms/cuda/src/CudaTorchKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@ std::vector<torch::jit::IValue> CudaCalcTorchForceKernel::prepareTorchInputs(Con
bool requires_grad = std::find(energyParameterDerivatives.begin(), energyParameterDerivatives.end(), name) != energyParameterDerivatives.end();
auto options = torch::TensorOptions().requires_grad(requires_grad).device(posTensor.device());
auto tensor = torch::tensor(context.getParameter(name), options);
// parameterTensors.emplace_back(tensor);
inputs.push_back(tensor);
}
// for (const string& name : globalNames)
// inputs.push_back(torch::tensor(context.getParameter(name)));
return inputs;
}

Expand Down

0 comments on commit 4778eac

Please sign in to comment.