Skip to content

Commit 685d073

Browse files
committed
complex
1 parent 6527538 commit 685d073

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

onnx_array_api/graph_api/graph_builder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ def make_nodes(
536536
if isinstance(value, TensorProto):
537537
value.name = name
538538
self.initializers_dict[name] = value
539+
if name in builder.initializers_dict_sources:
540+
self.initializers_dict_sources[name] = builder.initializers_dict_sources[name]
539541

540542
self.constants_[name] = None
541543
self.set_shape(name, builder._known_shapes[init])

onnx_array_api/npx/npx_jit_eager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def make_key(self, *values: List[Any], **kwargs: Dict[str, Any]) -> Tuple[Any, .
204204
if k in self.kwargs_to_input_:
205205
res.append(type(v))
206206
res.append(v)
207-
elif isinstance(v, (int, float, str, type, bool, DType)):
207+
elif isinstance(v, (int, float, str, type, bool, complex, DType)):
208208
res.append(k)
209209
res.append(type(v))
210210
res.append(v)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy