Comments (7)
I remember that there was some issue with caffe2 and winml that some tensor ops don't work if you use a scalar but they are perfectly happy if you pass [scalar] and I think we intentionally made a change to use [scalar] for that reason. Let me look at this again, it is some time ago and I don't know if caffe2 still needs this. We could maybe ifdef this for the caffe2 runtime ... this target thing was meant to allow runtime specific workarounds.
if ctx.is_target(TARGET_CAFFE2):
from tensorflow-onnx.
Thanks @guschmue for the reply, while this issue should be in tf-graph->onnx conversion stage, not yet hit the caffe2 runtime.
from tensorflow-onnx.
Do you mean let me comment the https://github.com/onnx/tensorflow-onnx/blob/master/tf2onnx/graph.py#L421 with check "if ctx.is_target(TARGET_CAFFE2):"?
from tensorflow-onnx.
void my comment ,,, not the same. I'll look at it today.
from tensorflow-onnx.
I just comment the L421 check to unblock the model conversion, so maybe we can consider to loose the shape==dim check for some special case. anyway, we can discuss once you get better context later. :)
from tensorflow-onnx.
sure
from tensorflow-onnx.
not having this issue recently, close this unless we got this failure again.
from tensorflow-onnx.
Related Issues (20)
- Inconsistency in conv+bn fusion and addition of useless reshapes in tf2onnx==1.16.1 HOT 3
- Support CTCBeamSearchDecoder HOT 1
- Conv3D performance degradation after ONNX conversion HOT 2
- Maxpool 2D layer error `Negative dimension size caused by subtracting 2 from 1 input shape shape=(128, 128, 1, 16)`
- tf.image.resize can't convert to FP16 model HOT 1
- Azure pipeline task CondaEnvironment@1 has been deprecated.
- Integrate with ONNX 1.16.0 release branch HOT 1
- Error of input shape {0,32,1,1} when infer with generated onnx model HOT 1
- Model conversion fail from Tensorflow while 2 GPU are utilized and first one set to be not visible in Tensorflow HOT 1
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 101: invalid start byte
- Converting TF on numpy 1.26
- Please help validate release candidate for ONNX 1.16.0rc2 HOT 1
- cannot convert keras model to onnx : 'Sequential' object has no attribute 'output_names'I HOT 9
- tf.linalg.eigh not supported in tf2onnx
- publish a command line executable on releases HOT 2
- Is it possible to convert tflite to onnx with changed input dimension?
- There are discrepancies between the outputs of the Ttflite and converted ONNX model.
- DirectML returning empty result with ObjectDetection (Mobilinet V2 FPN Keras) HOT 3
- Registering operator for tf.linalg.eig
- Project requires an old version of Protobuf HOT 4
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 tensorflow-onnx.