Skip to content

Commit

Permalink
Extend logging while loading/building the model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Nov 21, 2019
1 parent f649a19 commit 489a2d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fdeep/model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ inline model read_model(std::istream& model_file_stream,
return json_data["trainable_params"][layer_name][param_name];
};

log_sol("Building model");
model full_model(internal::create_model_layer(
get_param, json_data["architecture"],
json_data["architecture"]["config"]["name"],
Expand All @@ -303,6 +304,7 @@ inline model read_model(std::istream& model_file_stream,
internal::create_shape5s_variable(json_data["output_shapes"]),
internal::json_object_get<std::string, std::string>(
json_data, "hash", ""));
log_duration();

if (verify)
{
Expand Down

0 comments on commit 489a2d4

Please sign in to comment.