We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f2ae2 commit 74798bcCopy full SHA for 74798bc
openmmapi/src/TorchForceImpl.cpp
@@ -46,7 +46,7 @@ TorchForceImpl::~TorchForceImpl() {
46
}
47
48
void TorchForceImpl::initialize(ContextImpl& context) {
49
- auto module = owner.getModule();
+ auto module = owner.getModule().clone();
50
// Create the kernel.
51
kernel = context.getPlatform().createKernel(CalcTorchForceKernel::Name(), context);
52
kernel.getAs<CalcTorchForceKernel>().initialize(context.getSystem(), owner, module);
0 commit comments