Spec-Zone.ru › TensorFlow C++ 2.9

tensorflow::ops::StringStrip

#include <string_ops.h>

Удаление начальных и конечных пробелов из Tensor.

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

Примеры:

tf.strings.strip(["\\nTensorFlow", " The python library "]).numpy() массив([b'TensorFlow', b'The python library'], dtype=object)

Аргументы:

  • scope: Объект Scope
  • input: Строка Tensor любой формы.

Возвращает:

  • Output: Строка Tensor той же формы, что и входные данные.
Конструкторы и деструкторы
StringStrip(const ::tensorflow::Scope & scope, ::tensorflow::Input input)
Публичные атрибуты
operation
Operation
output
::tensorflow::Output
Публичные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Публичные атрибуты

operation

Operation operation

output

::tensorflow::Output output

Публичные функции

StringStrip

 StringStrip(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

© 2022 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.9/api_docs/cc/class/tensorflow/ops/string-strip

Spec-Zone.ru

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