onnx2tf 1.26.7__py3-none-any.whl → 1.26.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
onnx2tf/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  from onnx2tf.onnx2tf import convert, main
2
2
 
3
- __version__ = '1.26.7'
3
+ __version__ = '1.26.9'
@@ -184,7 +184,8 @@ def make_node(
184
184
  tf_layers_dict=tf_layers_dict,
185
185
  )
186
186
  val_model = None
187
- if not isinstance(input_tensor, np.ndarray):
187
+ if not isinstance(input_tensor, np.ndarray) \
188
+ and not hasattr(input_tensor, "numpy"):
188
189
  val_model = tf_keras.Model(
189
190
  inputs=tf_model_inputs,
190
191
  outputs=[
onnx2tf/ops/ReduceL1.py CHANGED
@@ -298,12 +298,10 @@ def make_node(
298
298
  # Generation of TF OP
299
299
  axes = list(axes) if axes is not None else None
300
300
  tf_layers_dict[graph_node_output.name]['tf_node'] = \
301
- tf.norm(
302
- tensor=input_tensor,
303
- ord=1,
301
+ tf.reduce_sum(
302
+ tf.abs(input_tensor),
304
303
  axis=axes if len(axes) > 1 else axes[0],
305
304
  keepdims=keepdims,
306
- name=graph_node.name,
307
305
  )
308
306
 
309
307
  # Post-process transpose
onnx2tf/ops/ReduceL2.py CHANGED
@@ -297,12 +297,12 @@ def make_node(
297
297
  # Generation of TF OP
298
298
  axes = list(axes) if axes is not None else None
299
299
  tf_layers_dict[graph_node_output.name]['tf_node'] = \
300
- tf.norm(
301
- tensor=input_tensor,
302
- ord=2,
303
- axis=axes if len(axes) > 1 else axes[0],
304
- keepdims=keepdims,
305
- name=graph_node.name,
300
+ tf.sqrt(
301
+ tf.reduce_sum(
302
+ tf.square(input_tensor),
303
+ axis=axes,
304
+ keepdims=keepdims
305
+ )
306
306
  )
307
307
 
308
308
  # Post-process transpose
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: onnx2tf
3
- Version: 1.26.7
3
+ Version: 1.26.9
4
4
  Summary: Self-Created Tools to convert ONNX files (NCHW) to TensorFlow/TFLite/Keras format (NHWC). The purpose of this tool is to solve the massive Transpose extrapolation problem in onnx-tensorflow (onnx-tf).
5
5
  Home-page: https://github.com/PINTO0309/onnx2tf
6
6
  Author: Katsuya Hyodo
@@ -331,7 +331,7 @@ Video speed is adjusted approximately 50 times slower than actual speed.
331
331
  docker run --rm -it \
332
332
  -v `pwd`:/workdir \
333
333
  -w /workdir \
334
- ghcr.io/pinto0309/onnx2tf:1.26.7
334
+ ghcr.io/pinto0309/onnx2tf:1.26.9
335
335
 
336
336
  or
337
337
 
@@ -339,7 +339,7 @@ Video speed is adjusted approximately 50 times slower than actual speed.
339
339
  docker run --rm -it \
340
340
  -v `pwd`:/workdir \
341
341
  -w /workdir \
342
- docker.io/pinto0309/onnx2tf:1.26.7
342
+ docker.io/pinto0309/onnx2tf:1.26.9
343
343
 
344
344
  or
345
345
 
@@ -1,4 +1,4 @@
1
- onnx2tf/__init__.py,sha256=RrXNg4NwfETlM2c3jHfhOLXhTvNGwhllQR8rp8HGUqk,66
1
+ onnx2tf/__init__.py,sha256=14sed6LJ9qrrV90jfdiUVlID3DheS0YBDgOQlRIbt_U,66
2
2
  onnx2tf/__main__.py,sha256=2RSCQ7d4lc6CwD-rlGn9UicPFg-P5du7ZD_yh-kuBEU,57
3
3
  onnx2tf/onnx2tf.py,sha256=IEnfIs3Dy8Y5F3iJ4HY7bWkn3QuB6lq_gHa1q5E3tMI,124745
4
4
  onnx2tf/ops/Abs.py,sha256=V7btmCG_ZvK_qJovUsguq0ZMJ349mhNQ4FHSgzP_Yuo,4029
@@ -50,7 +50,7 @@ onnx2tf/ops/Floor.py,sha256=8izJrNmw8wNmjF_YabIpLs4jm82J-gKcyAQbwV7Yqpc,3589
50
50
  onnx2tf/ops/FusedConv.py,sha256=gslI50V3yvt4l0mmodnyHFAu0cORx1J_ZL5cE0rZ8qs,4523
51
51
  onnx2tf/ops/GRU.py,sha256=kBHiZlhlPIV2DQCoFYFHxCTwOATeguJy1MSfj2kxqDM,30732
52
52
  onnx2tf/ops/Gather.py,sha256=ezsUTN8nWau4-kB696xjonlVWU6XQ6BjtyjSebt1EXg,15216
53
- onnx2tf/ops/GatherElements.py,sha256=3NzmEL50z0amWAwGiDo7A9ZLpcivD5ByAHtZd9ngk_g,14969
53
+ onnx2tf/ops/GatherElements.py,sha256=pR9EuOkYRBKPntmnj9DYpoBESc35EGv3RHfl0HCSmao,15026
54
54
  onnx2tf/ops/GatherND.py,sha256=sdHaBeY2ycN9gRc_ahaZo2QI9XbV8PBthefm-JPiPnE,7642
55
55
  onnx2tf/ops/Gelu.py,sha256=ms9oHnESOuiIPxl_8YU2WEnQo_BVKRPKo5UJsvsWyEA,4321
56
56
  onnx2tf/ops/Gemm.py,sha256=8vGtXwx_V59JIDh3EBPuFVQSbIVql45zEHUlVGV3coU,7587
@@ -122,8 +122,8 @@ onnx2tf/ops/RandomUniform.py,sha256=3FIDoguM-eDVD0vAWt7XxYj3fhLLvubNDDWtNazh7es,
122
122
  onnx2tf/ops/RandomUniformLike.py,sha256=CocvXoQkjeumITYuQGKF8TSTOX6xNKreZgQFopYqu0c,2771
123
123
  onnx2tf/ops/Range.py,sha256=2Kcn0dDZ7T-zKeCyJUH3NRXGR7DhIcgmuAjRCWgBSbU,3340
124
124
  onnx2tf/ops/Reciprocal.py,sha256=wRNioynAaaCnNZn183G2IPbEUTMtE5y95EwCoSHUNGE,3604
125
- onnx2tf/ops/ReduceL1.py,sha256=HKFXX71LLlKoLDOWMqgom6NPiP6DbrSq5hHRPOLYJbA,12387
126
- onnx2tf/ops/ReduceL2.py,sha256=rvdaIneNPtct8lOLo1Q8DTF3n8AOwedgNxL_w60ZVtU,12312
125
+ onnx2tf/ops/ReduceL1.py,sha256=O8u9MzkjETml9FOrLP98Ldr8BcvT-CBvFYfXU-Rl454,12341
126
+ onnx2tf/ops/ReduceL2.py,sha256=XFFzedagS7CN884VHk4TRm9Sxt7KD6n82g-aHJ29hbM,12285
127
127
  onnx2tf/ops/ReduceLogSum.py,sha256=xa5CtTKBi-VJpSHWLTGZKcV4IjEw6RorkpM6r0ffuP8,12349
128
128
  onnx2tf/ops/ReduceLogSumExp.py,sha256=xHBUGDyCHDfqlvYbJwg11-lAMundx_pj5K8pOQuOZwU,12357
129
129
  onnx2tf/ops/ReduceMax.py,sha256=BQ6xZ4il1fZp5WEwtY6Kbm45fGTjC_M2S5FDiKKCT4U,12593
@@ -188,10 +188,10 @@ onnx2tf/utils/__init__.py,sha256=E9FM9He68VIASDnYp-OrxvHFVn55GzWqw2OEkCqn1zg,27
188
188
  onnx2tf/utils/common_functions.py,sha256=lhhWuNVDwM_mVFc9DD2kYcYEyyT46CDlJMvZzi9KWD4,241473
189
189
  onnx2tf/utils/enums.py,sha256=7c5TqetqB07VjyHoxJHfLgtqBqk9ZRyUF33fPOJR1IM,1649
190
190
  onnx2tf/utils/logging.py,sha256=yUCmPuJ_XiUItM3sZMcaMO24JErkQy7zZwVTYWAuiKg,1982
191
- onnx2tf-1.26.7.dist-info/LICENSE,sha256=5v_Kxihy8i6mzHVl349ikSREaIdsl9YeUnX1KBDLD2w,1070
192
- onnx2tf-1.26.7.dist-info/LICENSE_onnx-tensorflow,sha256=gK4GtS9S5YcyINu6uuNNWdo-kBClyEM4MFLFGiNTeRM,11231
193
- onnx2tf-1.26.7.dist-info/METADATA,sha256=c3wABcbpUgOuTUlhaLmywA_FPyN8Aogkz5KAV0Um4Ao,147499
194
- onnx2tf-1.26.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
195
- onnx2tf-1.26.7.dist-info/entry_points.txt,sha256=gDPK8ToCFPKMvm8jr9xrGOkXtORJJVh4736fBEKO5k0,41
196
- onnx2tf-1.26.7.dist-info/top_level.txt,sha256=WgfPiEy3f6vZ_FOpAIEA2CF3TCx1eYrhGw93Ih6b9Fw,8
197
- onnx2tf-1.26.7.dist-info/RECORD,,
191
+ onnx2tf-1.26.9.dist-info/LICENSE,sha256=5v_Kxihy8i6mzHVl349ikSREaIdsl9YeUnX1KBDLD2w,1070
192
+ onnx2tf-1.26.9.dist-info/LICENSE_onnx-tensorflow,sha256=gK4GtS9S5YcyINu6uuNNWdo-kBClyEM4MFLFGiNTeRM,11231
193
+ onnx2tf-1.26.9.dist-info/METADATA,sha256=YlHKAl6m5rKRbF5pN8-jvIFUDvVTX9Mg-eWdkJvUkKM,147499
194
+ onnx2tf-1.26.9.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
195
+ onnx2tf-1.26.9.dist-info/entry_points.txt,sha256=gDPK8ToCFPKMvm8jr9xrGOkXtORJJVh4736fBEKO5k0,41
196
+ onnx2tf-1.26.9.dist-info/top_level.txt,sha256=WgfPiEy3f6vZ_FOpAIEA2CF3TCx1eYrhGw93Ih6b9Fw,8
197
+ onnx2tf-1.26.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (76.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5