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.
Возвращает:
| Конструкторы и деструкторы | |
|---|---|
StringToNumber(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor) | |
StringToNumber(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
output | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
OutType(DataType x) | |
| Структуры | |
|---|---|
| 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/r2.3/api_docs/cc/class/tensorflow/ops/string-to-number