Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::StringToNumber

#include <parsing_ops.h>

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

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

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

Аргументы:

  • 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
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::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 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/string-to-number

Spec-Zone.ru

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