Skip to content

Commit

Permalink
Merge pull request tensorflow#35510 from HotPotatoC:hotpotatoc-3
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 288407477
Change-Id: Ib24ca94ebef6d964ee2ba5da0a98bd06709948f5
  • Loading branch information
tensorflower-gardener committed Jan 7, 2020
2 parents f8eaa65 + a6f4bcb commit 5e26aa7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tensorflow/core/api_def/base_api/api_def_StringToNumber.pbtxt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@ END
description: <<END
(Note that int32 overflow results in an error while float overflow
results in a rounded value.)
Example:
>>> strings = ["5.0", "3.0", "7.0"]
>>> tf.strings.to_number(strings)
<tf.Tensor: shape=(3,), dtype=float32, numpy=array([5., 3., 7.], dtype=float32)>
END
}

0 comments on commit 5e26aa7

Please sign in to comment.