Skip to content

Commit 594ee33

Browse files
committed
Update the api names in ex_model_builder.cpp
1 parent 3500f1a commit 594ee33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

binaries/ex_model_builder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ int main() {
2626
{Type::TENSOR_QUANT8_ASYMM, {3, 1, 1, 3}, 0.1, 150});
2727
builder.AddTensorFromBuffer("bias", bias_buf,
2828
{Type::TENSOR_INT32, {3}, 0.1, 0});
29-
builder.AddLayerDEPTHWISE_CONV_2D("data", "weight", "bias", 1, 1, 0, 0, 0, 0,
29+
builder.AddLayer_DEPTHWISE_CONV_2D("data", "weight", "bias", 1, 1, 0, 0, 0, 0,
3030
ModelBuilder::ACTIVATION_NONE, 1,
3131
"conv_fwd",
3232
std::make_optional<ModelBuilder::QuantInfo>(
3333
{Type::TENSOR_QUANT8_ASYMM, {0.5}, 100}));
34-
builder.AddLayerRELU("conv_fwd", "relu_fwd");
35-
builder.AddLayerADD("data", "relu_fwd", ModelBuilder::ACTIVATION_NONE, "output",
34+
builder.AddLayer_RELU("conv_fwd", "relu_fwd");
35+
builder.AddLayer_ADD("data", "relu_fwd", ModelBuilder::ACTIVATION_NONE, "output",
3636
std::make_optional<ModelBuilder::QuantInfo>(
3737
{Type::TENSOR_QUANT8_ASYMM, {0.05}, 100}));
3838
} else {
@@ -41,7 +41,7 @@ int main() {
4141
{Type::TENSOR_FLOAT32, {3, 1, 1, 3}});
4242
builder.AddTensorFromBuffer("bias", bias_buf,
4343
{Type::TENSOR_FLOAT32, {3}});
44-
builder.AddLayerCONV_2D("data", "weight", "bias", 1, 1, 0, 0, 0, 0, ModelBuilder::ACTIVATION_NONE,
44+
builder.AddLayer_CONV_2D("data", "weight", "bias", 1, 1, 0, 0, 0, 0, ModelBuilder::ACTIVATION_NONE,
4545
"output", dnn::nullopt);
4646
}
4747
auto model = builder.AddOutput("output").Compile(

0 commit comments

Comments
 (0)