File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
onnxruntime/core/providers/webnn/builders Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,7 @@ Status ModelBuilder::RegisterInitializers() {
104104 if (tensor.has_raw_data ()) {
105105 tensor_ptr = reinterpret_cast <std::byte*>(const_cast <char *>(tensor.raw_data ().c_str ()));
106106 } else {
107- unpacked_tensors_.push_back ({});
108- std::vector<uint8_t >& unpacked_tensor = unpacked_tensors_.back ();
107+ std::vector<uint8_t > unpacked_tensor;
109108 ORT_RETURN_IF_ERROR (onnxruntime::utils::UnpackInitializerData (tensor, unpacked_tensor));
110109 tensor_ptr = reinterpret_cast <std::byte*>(unpacked_tensor.data ());
111110 }
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ class ModelBuilder {
6666 emscripten::val wnn_builder_ = emscripten::val::object();
6767 DataLayout preferred_layout_;
6868 WebnnDeviceType wnn_device_type_;
69- std::vector<std::vector<uint8_t >> unpacked_tensors_;
7069 InlinedHashMap<std::string, emscripten::val> wnn_operands_;
7170 std::vector<std::string> input_names_;
7271 std::vector<std::string> output_names_;
You can’t perform that action at this time.
0 commit comments