tensorflow::ops::Substr
tensorflow::ops::Substr
#include <string_ops.h>
Return substrings from Tensor
of strings.
Summary
For each string in the input Tensor
, creates a substring starting at index pos
with a total length of len
.
If len
defines a substring that would extend beyond the length of the input string, then as many characters as possible are used.
If pos
is negative or specifies a character index larger than any of the input strings, then an InvalidArgumentError
is thrown.
pos
and len
must have the same shape, otherwise a ValueError
is thrown on Op creation.
NOTE: 登录查看完整内容