Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved handling when axis attribute is not defined and the batch size of the first dimension is undefined. #692

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

PINTO0309
Copy link
Owner

@PINTO0309 PINTO0309 commented Sep 15, 2024

1. Content and background

  • Flatten
    • Improved handling when axis attribute is not defined and the batch size of the first dimension is undefined.
    • ONNX
      image
      wget https://github.com/PINTO0309/onnx2tf/releases/download/0.0.2/resnet18-v1-7.onnx
      onnx2tf -i resnet18-v1-7.onnx
      
      ls -lh saved_model/
      
      assets
      fingerprint.pb
      resnet18-v1-7_float16.tflite
      resnet18-v1-7_float32.tflite
      saved_model.pb
      variables
      
      TF_CPP_MIN_LOG_LEVEL=3 \
      saved_model_cli show \
      --dir saved_model \
      --signature_def serving_default \
      --tag_set serve
      
      The given SavedModel SignatureDef contains the following input(s):
        inputs['data'] tensor_info:
            dtype: DT_FLOAT
            shape: (-1, 224, 224, 3)
            name: serving_default_data:0
      The given SavedModel SignatureDef contains the following output(s):
        outputs['output_0'] tensor_info:
            dtype: DT_FLOAT
            shape: (-1, 1000)
            name: PartitionedCall:0
      Method name is: tensorflow/serving/predict
    • TFLite
      image

2. Summary of corrections

3. Before/After (If there is an operating log that can be used as a reference)

4. Issue number (only if there is a related issue)

@PINTO0309 PINTO0309 merged commit 5e1364f into main Sep 15, 2024
3 checks passed
@PINTO0309 PINTO0309 deleted the fix_flatten_no_axis branch September 15, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant