Skip to content

Commit d4771bf

Browse files
committed
Upgrade version
1 parent eb106e2 commit d4771bf

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.3.0
55
+++++
66

7+
* :pr:`93`: fixes evaluator type in ``compare_onnx_execution``
78
* :pr:`92`: avoids recursion errors in profiling
89
* :pr:`87`: adds command line to replace contant by ConstantOfShape
910
* :pr:`79`: first draft to export to GraphBuilder

_doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,7 @@ to know onnx for that. See :ref:`l-numpy-api-onnx`.
187187
Older versions
188188
++++++++++++++
189189

190+
* `0.3.0 <../v0.3.0/index.html>`_
191+
* `0.2.0 <../v0.2.0/index.html>`_
190192
* `0.1.3 <../v0.1.3/index.html>`_
191193
* `0.1.2 <../v0.1.2/index.html>`_

_unittests/ut_npx/test_npx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def local1(
208208
return x
209209

210210
def local2(
211-
x: TensorType[ElemType.floats, "T"]
211+
x: TensorType[ElemType.floats, "T"],
212212
) -> TensorType[ElemType.floats, "T"]:
213213
return x
214214

onnx_array_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
APIs to create ONNX Graphs.
33
"""
44

5-
__version__ = "0.2.0"
5+
__version__ = "0.3.0"
66
__author__ = "Xavier Dupré"

onnx_array_api/npx/npx_functions_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222

2323
@npxapi_function
2424
def _min_max(
25-
x: TensorType[ElemType.numerics, "T"]
25+
x: TensorType[ElemType.numerics, "T"],
2626
) -> TupleType[TensorType[ElemType.numerics, "T"], TensorType[ElemType.numerics, "T"]]:
2727
return tuple_var(var(x, op="ReduceMin"), var(x, op="ReduceMax"))
2828

2929

3030
@npxapi_inline
3131
def _min_max_inline(
32-
x: TensorType[ElemType.numerics, "T"]
32+
x: TensorType[ElemType.numerics, "T"],
3333
) -> TupleType[TensorType[ElemType.numerics, "T"], TensorType[ElemType.numerics, "T"]]:
3434
return tuple_var(var(x, op="ReduceMin"), var(x, op="ReduceMax"))
3535

3636

3737
@npxapi_function
3838
def absolute(
39-
x: TensorType[ElemType.numerics, "T"]
39+
x: TensorType[ElemType.numerics, "T"],
4040
) -> TensorType[ElemType.numerics, "T"]:
4141
"See :func:`numpy.absolute`."
4242
return var(x, op="Abs")
@@ -90,7 +90,7 @@ def log1p(x: TensorType[ElemType.floats, "T"]) -> TensorType[ElemType.floats, "T
9090

9191
@npxapi_function
9292
def negative(
93-
x: TensorType[ElemType.numerics, "T"]
93+
x: TensorType[ElemType.numerics, "T"],
9494
) -> TensorType[ElemType.numerics, "T"]:
9595
"See :func:`numpy.negative`."
9696
return var(x, op="Neg")

onnx_array_api/validation/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
def randomize_proto(
23-
onx: Union[ModelProto, GraphProto, FunctionProto, NodeProto, TensorProto]
23+
onx: Union[ModelProto, GraphProto, FunctionProto, NodeProto, TensorProto],
2424
) -> Union[ModelProto, GraphProto, FunctionProto, NodeProto, TensorProto]:
2525
"""
2626
Randomizes float initializers or constant nodes.

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