tensorflow::ops::StringToNumber

#include <parsing_ops.h>

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 (see Attrs):

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

Returns:

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

Constructors and Destructors

StringToNumber(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor)
StringToNumber(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs)

Public attributes

output

Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public static functions

OutType(DataType x)

Structs

tensorflow::ops::StringToNumber::Attrs

Optional attribute setters for StringToNumber.

Public attributes

output

::tensorflow::Output output

Public functions

StringToNumber

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor
)

StringToNumber

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor,
  const StringToNumber::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

OutType

Attrs OutType(
  DataType x
)