Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7c89f2

Browse files
committed
one fix
1 parent5ce3275 commitd7c89f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎onnx_array_api/graph_api/graph_builder.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def __init__(
224224
self.constants_[node.output[0]]=node
225225
self.set_shape(node.output[0],self._get_tensor_shape(node))
226226
self.set_type(node.output[0],self._get_tensor_type(node))
227-
forfinproto.function:
227+
forfinproto.functions:
228228
self.add_function(f)
229229
else:
230230
raiseNotImplementedError(

‎onnx_array_api/translate_api/builder_emitter.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def _emit_end_signature(self, **kwargs: Dict[str, Any]) -> List[str]:
134134
forinitinself.inits:
135135
val=to_array(init)
136136
stype=str(val.dtype).split(".")[-1]
137-
rows.append(f"{init.name} = np.array({val.tolist()}, dtype=np.{stype})")
137+
name=self._clean_result_name(init.name)
138+
rows.append(f"{name} = np.array({val.tolist()}, dtype=np.{stype})")
138139
returnrows
139140

140141
def_emit_begin_return(self,**kwargs:Dict[str,Any])->List[str]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp