mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-30 23:18:20 +00:00
12 lines
No EOL
342 B
C++
12 lines
No EOL
342 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
#include <numpy/arrayobject.h>
|
|
namespace onnxruntime {
|
|
namespace python {
|
|
constexpr bool IsNumericNumpyType(int npy_type) {
|
|
return npy_type < NPY_OBJECT || npy_type == NPY_HALF;
|
|
}
|
|
} // namespace python
|
|
} // namespace onnxruntime
|