You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be useful for a number of purposes, such as extracting data, substring matches (#4009), etc. Proposed API (matches C++ style substrings):
Args:
inputs: a `Tensor` of type `string`. The strings that will have substrings extracted
pos: `int32` or `int64` `Tensor`. Position of the first character to be copied as a substring
len: `int32` or `int64` `Tensor`. Number of characters to include in the substring
Returns:
A `Tensor` of type `string` containing substrings of `inputs`
@DjangoPeng Oh no! I already sent in a PR two days ago with #4338. I'm planning on using the Op to finish work on the tf.decode_image Op, so I knocked out a version over the weekend.
Activity
DjangoPeng commentedon Sep 14, 2016
@samjabrahams I want to try adding the substr Op :). Should I add it to the
String_ops.py?samjabrahams commentedon Sep 14, 2016
@DjangoPeng Oh no! I already sent in a PR two days ago with #4338. I'm planning on using the Op to finish work on the
tf.decode_imageOp, so I knocked out a version over the weekend.DjangoPeng commentedon Sep 15, 2016
@samjabrahams Sounds good~ Look forward to your update~
samjabrahams commentedon Nov 4, 2016
Substr (#4338) has been merged into master