Skip to content

Commit

Permalink
[UPD] add generate resource for const folder (#1835)
Browse files Browse the repository at this point in the history
Co-authored-by: ealinli <[email protected]>
  • Loading branch information
1627180283 and ealinli authored Nov 25, 2022
1 parent 2c849dc commit 97e627e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tnn/core/default_network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Status DefaultNetwork::InitLayers(NetStructure *net_structure, NetResource *net_
dynamic_cast<ReformatLayerParam *>(layer_info->param.get())->dst_format : input_fmt;

#ifdef GENERATE_RESOURCE
if (runtime_model_ == RUNTIME_MODE_NORMAL) {
if (runtime_model_ == RUNTIME_MODE_NORMAL || runtime_model_ == RUNTIME_MODE_CONST_FOLD) {
LayerType type = layer_info->type;
BaseLayer *cur_layer = CreateLayer(type);
if (cur_layer == NULL) {
Expand Down

0 comments on commit 97e627e

Please sign in to comment.