Comments (2)
it's a technical error in the description then. it should be 0-based index for axes.
The example in the spec https://github.com/onnx/onnx/blob/master/docs/Operators.md#examples-97
even uses a 0 axis
node = onnx.helper.make_node(
'Squeeze',
inputs=['x'],
outputs=['y'],
axes=[0],
)
x = np.random.randn(1, 3, 4, 5).astype(np.float32)
y = np.squeeze(x, axis=0)
expect(node, inputs=[x], outputs=[y],
name='test_squeeze')
Given onnx is an interchange format between frameworks and caffe2, tf, pytorch etc. use 0-based index, it wouldn't make sense for onnx to use 1-based.
from onnxruntime.
Forward to ONNX repo: onnx/onnx#1755
from onnxruntime.
Related Issues (20)
- [BUG] Running operations over concat output rewrites it's values
- [Build] Jetson orin nano unknown cmake error HOT 5
- how to build onnxruntime with latest version of onnx HOT 1
- [Feature Request] 2024-05-09 07:05:28.107324198 [E:onnxruntime:Default, cann_call.cc:139 CannCall] CANNGRAPH failure -1: GRAPH_FAILED ; NPU=0 ; hostname=d5624f2a4431 ; expr=ge::aclgrphParseONNXFromMem(string_model.data(), string_model.size(), parser_params, graph); 2024-05-09 07:05:28.108008819 [E:onnxruntime:, sequential_executor.cc:516 ExecuteKernel] Non-zero status code returned while running main_graph_12023255667024707207_0 node. Name:'CANNExecutionProvider_main_graph_12023255667024707207_0_0' Status Message: CANN Graph error executing ge::aclgrphParseONNXFromMem(string_model.data(), string_model.size(), parser_params, graph)
- LayerNormalization on Dnnl execution provider causing side-effect of input HOT 1
- bf16 kernel (OpSet13) for MatMul in CPU EP HOT 1
- [Documentation] Which release package holds which EPs
- [Discussion] ORT GPU binaries do not contain DML
- [Documentation] Model test link is outdated HOT 1
- [How to release cpu memory after session Run] HOT 1
- ONNXRuntimeError with a model that passes onnx.checker and was supported on previous ort versions HOT 4
- [Web] Trouble loading > 2GB ONNX model (those with separate blocks) HOT 1
- [Web] i set onnx model , but it use wasm model and it not found
- [Web] vue3+vite wasm streaming compile failed: LinkError: WebAssembly.instantiate()
- Please document how to build with new execution provider [Documentation Request] HOT 1
- install cuda 12.4, but got libcublas.so.11 missing error HOT 1
- python使用onnxRuntime进行压测时,使用的是GPU计算,但是CPU也会上升,GPU和CPU都打满后停止压测,GPU资源迅速释放,但是CPU资源一直满负荷 HOT 1
- Error No Op registered for SimplifiedLayerNormalization with domain_version of 14 HOT 5
- Undefined behaviour in OneHot operator HOT 1
- In a Windows 32-bit system, what is the highest version that can be used? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxruntime.