Skip to content

Commit

Permalink
fix bug with 1-dim model_devi_activation_func (deepmodeling#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericwang6 authored and Cloudac7 committed Dec 1, 2021
1 parent 2af33a8 commit 56df5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def make_train (iter_index,
jinput['model']['fitting_net']['activation_function'] = model_devi_activation_func[ii][1]
if len(np.array(model_devi_activation_func).shape) == 1 : # for backward compatibility, 1-dim list, not net-resolved
jinput['model']['descriptor']['activation_function'] = model_devi_activation_func[ii]
jinput['model']['descriptor']['activation_function'] = model_devi_activation_func[ii]
jinput['model']['fitting_net']['activation_function'] = model_devi_activation_func[ii]
# dump the input.json
with open(os.path.join(task_path, train_input_file), 'w') as outfile:
json.dump(jinput, outfile, indent = 4)
Expand Down

0 comments on commit 56df5e5

Please sign in to comment.