-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONNX] Update external data location in Constant nodes (#12992)
Ticket: 91271
- Loading branch information
1 parent
c076284
commit dcc8f92
Showing
3 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
src/core/tests/models/onnx/external_data/external_data_in_constant_node.prototxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
ir_version: 3 | ||
producer_name: "nGraph ONNX Importer" | ||
graph { | ||
node { | ||
output: "B" | ||
op_type: "Constant" | ||
attribute { | ||
name: "value" | ||
t { | ||
dims: 2 | ||
dims: 2 | ||
data_type: 1 | ||
name: "const_tensor" | ||
external_data { | ||
key: "location", | ||
value: "tensors_data/tensor.data" | ||
} | ||
data_location: 1 | ||
} | ||
type: TENSOR | ||
} | ||
} | ||
node { | ||
input: "A" | ||
input: "B" | ||
output: "X" | ||
name: "add_node1" | ||
op_type: "Add" | ||
} | ||
name: "test_graph" | ||
input { | ||
name: "A" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "X" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters