onnxruntime/onnxruntime/test
pengwa ccc4487553
fix CI onnxruntime_test_python_sparse_matmul.py (#14039)
### Description

Numpy1.24.0 removed the np.float. 
```

  /opt/hostedtoolcache/Python/3.8.15/x64/bin/python onnxruntime_test_python_sparse_matmul.py
EE.
======================================================================
ERROR: testRunContribSparseMatMul (__main__.TestSparseToDenseMatmul)
Mutliple sparse COO tensor to dense
----------------------------------------------------------------------
Traceback (most recent call last):
  File "onnxruntime_test_python_sparse_matmul.py", line 407, in testRunContribSparseMatMul
    np.float,
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

======================================================================
ERROR: testRunSparseOutputOnly (__main__.TestSparseToDenseMatmul)
Try running models using the new run_with_ort_values
----------------------------------------------------------------------
Traceback (most recent call last):
  File "onnxruntime_test_python_sparse_matmul.py", line 39, in testRunSparseOutputOnly
    values = np.array([1.764052391052246, 0.40015721321105957, 0.978738009929657], np.float)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

```



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2022-12-21 17:31:52 +08:00
..
api_tests_without_env
common oneDNN ep bf16 enabling (#13484) 2022-11-04 18:25:09 -07:00
contrib_ops Implement reuse past and present tensor in Attention Ops. (#13791) 2022-12-18 10:03:53 -08:00
debug_node_inputs_outputs Bug Fix - WASM build break (#13699) 2022-11-20 23:30:31 -08:00
eager Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
framework Multi-stream execution support (#13495) 2022-12-15 07:39:29 -08:00
fuzzing
global_thread_pools Exclude affinity-setting logic from minimal build (#13967) 2022-12-15 14:43:42 -08:00
ir Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
mlas
onnx Stop creating static thread pool to fix random hang in onnx_test_runner (#14023) 2022-12-19 19:48:14 -08:00
opaque_api
optimizer Multi-stream execution support (#13495) 2022-12-15 07:39:29 -08:00
perftest Enabling thread pool to be numa-aware (#13778) 2022-12-12 10:33:55 -08:00
platform Exclude affinity-setting logic from minimal build (#13967) 2022-12-15 14:43:42 -08:00
proto
providers Stop creating static thread pool to fix random hang in onnx_test_runner (#14023) 2022-12-19 19:48:14 -08:00
python fix CI onnxruntime_test_python_sparse_matmul.py (#14039) 2022-12-21 17:31:52 +08:00
quantization
shared_lib Exclude affinity-setting logic from minimal build (#13967) 2022-12-15 14:43:42 -08:00
testdata Multi-stream execution support (#13495) 2022-12-15 07:39:29 -08:00
unittest_main
util Multi-stream execution support (#13495) 2022-12-15 07:39:29 -08:00
wasm
win_getopt
xctest