Skip to content

Commit a327f2b

Browse files
Fix raw_data to no longer have __EXTERNAL when data stored externally (#1392)
Signed-off-by: Tom Wildenhain <[email protected]>
1 parent 1db1270 commit a327f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2onnx/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_value_attr(self, external_tensor_storage=None):
116116
external_tensor_storage.name_counter += 1
117117
external_tensor_storage.name_to_tensor_data[tensor_name] = a.t.raw_data
118118
external_tensor_storage.node_to_modified_value_attr[self] = a
119-
a.t.raw_data = b'__EXTERNAL'
119+
a.t.raw_data = b''
120120
location = a.t.external_data.add()
121121
location.key = "location"
122122
location.value = tensor_name

0 commit comments

Comments
 (0)