Skip to content

Commit

Permalink
Merge pull request #466 from ziyuang/ziyuang-half-val-content-patch
Browse files Browse the repository at this point in the history
consider half_val when retrieving tensor content
  • Loading branch information
guschmue authored Apr 19, 2019
2 parents 5df0818 + 874def6 commit d03e469
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tf2onnx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def get_tf_tensor_data(tensor):
is_raw = True
elif tensor.float_val:
data = tensor.float_val
elif tensor.half_val:
data = tensor.half_val
elif tensor.dcomplex_val:
data = tensor.dcomplex_val
elif tensor.int_val:
Expand Down

0 comments on commit d03e469

Please sign in to comment.