Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,20 @@
w => identity + perturbation_magnitude*(w_harvest-0.5)/0.5, &
b => perturbation_magnitude*(b_harvest-0.5)/0.5 &
)
#ifndef NAGFOR
trainable_network = trainable_network_t( &
neural_network_t(nodes=n, weights=w, biases=b, metadata=metadata, input_map=input_map, output_map=output_map) &
)
#else
! manually inline the default_real_network() function invoked by the above user-defined trainable_network_t constructor
associate( &
neural_network => &
neural_network_t(nodes=n, weights=w, biases=b, metadata=metadata, input_map=input_map, output_map=output_map) &
)
trainable_network%neural_network_t = neural_network
trainable_network%workspace_ = workspace_t(neural_network)
end associate
#endif
end associate
end associate
end associate
Expand Down