-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
high prioritymodule: cppRelated to C++ APIRelated to C++ APImodule: cpp-extensionsRelated to torch.utils.cpp_extensionRelated to torch.utils.cpp_extensiononcall: jitAdd this issue/PR to JIT oncall triage queueAdd this issue/PR to JIT oncall triage queuetriage review
Description
❓ Questions and Help
There are dropout and batchnormalization layers in my module, therefore I use this in my cpp souce code:
module->eval();
And module->is_training() shows now it is in eval mode.
However, the followed module->forward(inputs) returns different output for every time.
Does I miss something else?
thanks a lot.
ps, I even add these, although I don't think they are necessary
torch::TensorOptions options;
options.is_variable(false).requires_grad(false);
best regards,
Metadata
Metadata
Assignees
Labels
high prioritymodule: cppRelated to C++ APIRelated to C++ APImodule: cpp-extensionsRelated to torch.utils.cpp_extensionRelated to torch.utils.cpp_extensiononcall: jitAdd this issue/PR to JIT oncall triage queueAdd this issue/PR to JIT oncall triage queuetriage review