Browse Source

remove vs w4305 w4477 (#2422)

tags/20201218
ncnnnnn GitHub 5 years ago
parent
commit
375c4abb6c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tools/onnx/onnx2ncnn.cpp

+ 2
- 2
tools/onnx/onnx2ncnn.cpp View File

@@ -1167,7 +1167,7 @@ static void fuse_groupnorm(onnx::GraphProto* mutable_graph, std::map<std::string
continue;

// +eps
float eps = get_node_attr_f(*node2, "epsilon", 1e-05);
float eps = get_node_attr_f(*node2, "epsilon", 1e-05f);

// InstanceNormalization S=1 B=0
std::vector<float> S = get_node_attr_from_input_af(weights[node2->input(1)]);
@@ -1937,7 +1937,7 @@ int main(int argc, char** argv)
}
}

fprintf(pp, "%lu %lu\n", node_count - reduced_node_count + input_node_count + node_reference.size() + binaryop_weights.size() - reduced_binaryop_weights.size(), blob_names.size() - reduced_binaryop_weights.size() + splitncnn_blob_count);
fprintf(pp, "%zu %zu\n", node_count - reduced_node_count + input_node_count + node_reference.size() + binaryop_weights.size() - reduced_binaryop_weights.size(), blob_names.size() - reduced_binaryop_weights.size() + splitncnn_blob_count);

int internal_split = 0;



Loading…
Cancel
Save