tensorflow::ops::Cast
#include <math_ops.h>
Преобразование x типа SrcT в y типа DstT.
Краткое описание
Аргументы:
- scope: Объект Scope
Возвращает:
-
Output: Тензор y.
| Конструкторы и деструкторы | |
|---|---|
Cast(const ::tensorflow::Scope & scope, ::tensorflow::Input x, DataType DstT) | |
Cast(const ::tensorflow::Scope & scope, ::tensorflow::Input x, DataType DstT, const Cast::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
y | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Truncate(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::Cast::Attrs | Дополнительные атрибуты для Преобразования. |
Публичные атрибуты
operation
Operation operation
y
::tensorflow::Output y
Публичные функции
Преобразование
Cast( const ::tensorflow::Scope & scope, ::tensorflow::Input x, DataType DstT )
Преобразование
Cast( const ::tensorflow::Scope & scope, ::tensorflow::Input x, DataType DstT, const Cast::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
Усечение
Attrs Truncate( bool 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/cast