tensorflow :: ops :: AsString
#include <string_ops.h>
Mengonversi setiap entri di tensor tertentu menjadi string.
Ringkasan
Mendukung banyak tipe numerik dan boolean.
Untuk Unicode, lihat tutorial [ https://www.tensorflow.org/tutorials/representation/unicode ] (Bekerja dengan teks Unicode).
Contoh:
tf.strings.as_string ([3, 2])
Argumen:
- scope: Objek Scope
Atribut opsional (lihat Attrs
):
- presisi: Ketepatan pasca-desimal yang digunakan untuk bilangan floating point. Hanya digunakan jika presisi> -1.
- scientific: Gunakan notasi ilmiah untuk bilangan floating point.
- terpendek: Gunakan representasi terpendek (baik ilmiah atau standar) untuk bilangan floating point.
- width: Memasukkan angka pra-desimal ke lebar ini. Berlaku untuk bilangan floating point dan integer. Hanya digunakan jika lebar> -1.
- fill: Nilai yang akan diisi jika lebar> -1. Jika kosong, lapisi dengan spasi. Nilai tipikal lainnya adalah '0'. String tidak boleh lebih dari 1 karakter.
Pengembalian:
-
Output
: Tensor keluaran.
Pembangun dan Penghancur | |
---|---|
AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const AsString::Attrs & attrs) |
Atribut publik | |
---|---|
operation | |
output |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Fill (StringPiece x) | |
Precision (int64 x) | |
Scientific (bool x) | |
Shortest (bool x) | |
Width (int64 x) |
Structs | |
---|---|
tensorflow :: ops :: AsString :: Attrs |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
AsString
AsString( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
AsString
AsString( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const AsString::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Mengisi
Attrs Fill( StringPiece x )
Presisi
Attrs Precision( int64 x )
Ilmiah
Attrs Scientific( bool x )
Terpendek
Attrs Shortest( bool x ).dll
Lebar
Attrs Width( int64 x )