Spec-Zone.ru › TensorFlow C++

tensorflow::ops::StringStrip

#include <string_ops.h>

Удаляет начальные и конечные пробелы из тензора.

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

Примеры:

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
)

узел

::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/api_docs/cc/class/tensorflow/ops/string-strip

Spec-Zone.ru

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