Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::StringToNumber

#include <parsing_ops.h>

Преобразует каждую строку в входном тензоре в указанный числовой тип.

Краткое описание

(Обратите внимание, что переполнение int32 приводит к ошибке, а переполнение float — к округленному значению.)

Пример:

strings = ["5.0", "3.0", "7.0"] tf.strings.to_number(strings)

Аргументы:

  • scope: Объект Scope

Необязательные атрибуты (см. Attrs):

  • out_type: Числовой тип для интерпретации каждой строки в string_tensor.

Возвращаемое значение:

  • Output: Тензор той же формы, что и входной string_tensor.
Конструкторы и деструкторы
StringToNumber(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor)
StringToNumber(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs)
Общедоступные атрибуты
operation
Operation
output
::tensorflow::Output
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Общедоступные статические функции
OutType(DataType x)
Attrs
Структуры
tensorflow::ops::StringToNumber::Attrs

Необязательные установщики атрибутов для StringToNumber.

Общедоступные атрибуты

operation

Operation operation

output

::tensorflow::Output output

Общедоступные функции

StringToNumber

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

StringToNumber

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

узел

::tensorflow::Node * node() const 

Оператор::tensorflow::Input

operator::tensorflow::Input() const 

Оператор::tensorflow::Output

operator::tensorflow::Output() const 

Общедоступные статические функции

OutType

Attrs OutType(
  DataType x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/string-to-number

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API