StringToNumber


tensorflow C++ API

tensorflow::ops::StringToNumber

Converts each string in the input Tensor to the specified numeric type.


Summary

(Note that int32 overflow results in an error while float overflow results in a rounded value.)

Arguments:

Optional attributes (seeAttrs):

  • out_type: The numeric type to interpret each string in string_tensoras.

Returns:

  • Output : A Tensor of the same shape as the input string_tensor.

StringToNumber block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_parsing_op.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input string_tensor: connect Input node.
  • StringToNumber::Attrs attrs: Input Attrs in value.

Return:

  • Output output : Output object of ParseTensor class object.

Result:

  • std::vector(Tensor) result_output : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""