Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
turbotoribio committed Sep 14, 2023
1 parent a3d4f8f commit 15b142d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions codegen/examples/hello_world/hello_world_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ struct Node0_0 {
.activation = kTfLiteActRelu,
.weights_format = kTfLiteFullyConnectedWeightsFormatDefault,
.keep_num_dims = false,
.quantized_bias_type = 0,
.asymmetric_quantize_inputs = false};
} node_0_0;

Expand All @@ -139,6 +140,7 @@ struct Node0_1 {
.activation = kTfLiteActRelu,
.weights_format = kTfLiteFullyConnectedWeightsFormatDefault,
.keep_num_dims = false,
.quantized_bias_type = 0,
.asymmetric_quantize_inputs = false};
} node_0_1;

Expand All @@ -156,6 +158,7 @@ struct Node0_2 {
.activation = kTfLiteActNone,
.weights_format = kTfLiteFullyConnectedWeightsFormatDefault,
.keep_num_dims = false,
.quantized_bias_type = 0,
.asymmetric_quantize_inputs = false};
} node_0_2;

Expand Down
2 changes: 1 addition & 1 deletion codegen/operators/fully_connected.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def generate_c_builtin_data(self) -> str:
weights_format=_WEIGHTS_FORMATS[self._builtin_options.weightsFormat],
keep_num_dims=utils.bool_to_c_str(self._builtin_options.keepNumDims),
quantized_bias_type=utils.bool_to_c_str(
self._builtin_options.quantized_bias_type),
self._builtin_options.quantizedBiasType),
asymmetric_quantize_inputs=utils.bool_to_c_str(
self._builtin_options.asymmetricQuantizeInputs))

0 comments on commit 15b142d

Please sign in to comment.