Skip to content

Commit

Permalink
stop to use deprecated API in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
okdshin committed Oct 9, 2018
1 parent 7a07457 commit 44a74db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/general_cnn_example_in_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int main(int argc, char** argv) {
menoh::variable_profile_table_builder vpt_builder;
vpt_builder.add_input_profile(conv1_1_in_name, menoh::dtype_t::float_,
{batch_size, channel_num, height, width});
vpt_builder.add_output_profile(softmax_out_name, menoh::dtype_t::float_);
vpt_builder.add_output_name(softmax_out_name);

// Build variable_profile_table and get variable dims (if needed)
auto vpt = vpt_builder.build_variable_profile_table(model_data);
Expand Down
8 changes: 4 additions & 4 deletions example/vgg16_example_in_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ int main() {
ERROR_CHECK(menoh_variable_profile_table_builder_add_input_profile(
vpt_builder, conv1_1_in_name, menoh_dtype_float, 4, input_dims));

ERROR_CHECK(menoh_variable_profile_table_builder_add_output_profile(
vpt_builder, fc6_out_name, menoh_dtype_float));
ERROR_CHECK(menoh_variable_profile_table_builder_add_output_profile(
vpt_builder, softmax_out_name, menoh_dtype_float));
ERROR_CHECK(menoh_variable_profile_table_builder_add_output_name(
vpt_builder, fc6_out_name));
ERROR_CHECK(menoh_variable_profile_table_builder_add_output_name(
vpt_builder, softmax_out_name));

menoh_variable_profile_table_handle variable_profile_table;
ERROR_CHECK(menoh_build_variable_profile_table(vpt_builder, model_data,
Expand Down
4 changes: 2 additions & 2 deletions example/vgg16_example_in_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ int main(int argc, char** argv) {
menoh::variable_profile_table_builder vpt_builder;
vpt_builder.add_input_profile(conv1_1_in_name, menoh::dtype_t::float_,
{batch_size, channel_num, height, width});
vpt_builder.add_output_profile(fc6_out_name, menoh::dtype_t::float_);
vpt_builder.add_output_profile(softmax_out_name, menoh::dtype_t::float_);
vpt_builder.add_output_name(fc6_out_name);
vpt_builder.add_output_name(softmax_out_name);

// Build variable_profile_table and get variable dims (if needed)
auto vpt = vpt_builder.build_variable_profile_table(model_data);
Expand Down

0 comments on commit 44a74db

Please sign in to comment.