Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOGS.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Change Logs
===========

0.3.4
+++++

0.3.3
+++++

Expand Down
2 changes: 1 addition & 1 deletion _doc/examples/plot_benchmark_rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def measure_inference(fct, X, repeat, max_time=5, quantile=1):
# model for a random forest and onnxruntime after it was converted
# into ONNX and for the following configurations.

small = cpu_count() < 12
small = cpu_count() < 25
if small:
N = 1000
n_features = 10
Expand Down
2 changes: 1 addition & 1 deletion onnx_array_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
APIs to create ONNX Graphs.
"""

__version__ = "0.3.3"
__version__ = "0.3.4"
__author__ = "Xavier Dupré"
8 changes: 6 additions & 2 deletions onnx_array_api/array_api/_onnx_common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from typing import Any, Optional
import numpy as np
from onnx import TensorProto
import array_api_strict

try:
import array_api_strict
except ImportError:
array_api_strict = None

from ..npx.npx_types import (
DType,
Expand All @@ -27,7 +31,7 @@
)


Array = type(array_api_strict.ones((1,)))
Array = type(array_api_strict.ones((1,))) if array_api_strict else None


# These functions with no specific code do not have to be
Expand Down