Skip to content

Commit

Permalink
Add option to set data type in torchann
Browse files Browse the repository at this point in the history
  • Loading branch information
zwpku committed Aug 30, 2023
1 parent 94034f8 commit d2e34ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/colvarcomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,9 @@ class colvar::torchANN
{
protected:
torch::jit::script::Module nn;
/// the index of nn output components
/// the index of nn output component
size_t m_output_index;
bool use_double_input;
// 1d tensor, concatenation of values of sub-cvcs
torch::Tensor input_tensor;
torch::Tensor nn_outputs;
Expand Down

0 comments on commit d2e34ea

Please sign in to comment.