Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
test tf1
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWildenhain-Microsoft committed May 21, 2021
1 parent 75d09e1 commit 6b5a797
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/linux-conda-CI-tf-keras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
$(INSTALL_ORT)
pip install git+https://github.com/onnx/tensorflow-onnx
pip install git+https://github.com/onnx/tensorflow-onnx@tom/test_keras_tf1
displayName: 'Install dependencies'
- script: |
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
pip install git+https://github.com/qubvel/efficientnet
$(INSTALL_TRANSFORMERS)
pip install keras-self-attention
pip install git+https://github.com/onnx/tensorflow-onnx
pip install git+https://github.com/onnx/tensorflow-onnx@tom/test_keras_tf1
displayName: 'Install dependencies'
- script: |
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/linux-conda-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
$(INSTALL_ORT)
pip install git+https://github.com/onnx/tensorflow-onnx
pip install git+https://github.com/onnx/tensorflow-onnx@tom/test_keras_tf1
displayName: 'Install dependencies'
- script: |
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/win32-conda-CI-tf-keras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
%INSTALL_ORT%
pip install git+https://github.com/onnx/tensorflow-onnx
pip install git+https://github.com/onnx/tensorflow-onnx@tom/test_keras_tf1
displayName: 'Install dependencies'
- script: |
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
pip install git+https://github.com/qubvel/efficientnet
%INSTALL_TRANSFORMERS%
pip install keras-self-attention
pip install git+https://github.com/onnx/tensorflow-onnx
pip install git+https://github.com/onnx/tensorflow-onnx@tom/test_keras_tf1
displayName: 'Install dependencies'
- script: |
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/win32-conda-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
%INSTALL_ORT%
pip install git+https://github.com/onnx/tensorflow-onnx
pip install git+https://github.com/onnx/tensorflow-onnx@tom/test_keras_tf1
displayName: 'Install dependencies'
- script: |
Expand Down
1 change: 1 addition & 0 deletions keras2onnx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def convert_keras_tf2onnx(model, name=None, doc_string='', target_opset=None, in
target_opset = get_maximum_opset_supported()
input_signature = _process_initial_types(initial_types, unknown_dim=None)


import tf2onnx
model, external_tensor_storage = tf2onnx.convert.from_keras(model, input_signature, opset=target_opset,
inputs_as_nchw=channel_first_inputs)
Expand Down

0 comments on commit 6b5a797

Please sign in to comment.