tensorflow :: ops :: TruncatedNormal
#include <random_ops.h>
Mengeluarkan nilai acak dari distribusi normal yang terpotong.
Ringkasan
Nilai yang dihasilkan mengikuti distribusi normal dengan mean 0 dan deviasi standar 1, kecuali nilai yang besarnya lebih dari 2 standar deviasi dari mean dijatuhkan dan dipilih kembali.
Argumen:
- scope: Objek Scope
- Bentuk: Bentuk tensor keluaran.
- dtype: Jenis keluaran.
Atribut opsional (lihat Attrs
):
- benih: Jika salah satu
seed
atauseed2
ditetapkan menjadi bukan nol, generator nomor acak disemai oleh benih yang diberikan. Jika tidak, itu diunggulkan dengan benih acak. - seed2: Benih kedua untuk menghindari tumbukan benih.
Pengembalian:
-
Output
: Tensor bentuk tertentu yang diisi dengan nilai normal terpotong acak.
Pembuat dan Penghancur | |
---|---|
TruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype) | |
TruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const TruncatedNormal::Attrs & attrs) |
Atribut publik | |
---|---|
operation | |
output |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Seed (int64 x) | |
Seed2 (int64 x) |
Structs | |
---|---|
tensorflow :: ops :: TruncatedNormal :: Attrs | Penyetel atribut opsional untuk TruncatedNormal . |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
TruncatedNormal
TruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
TruncatedNormal
TruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const TruncatedNormal::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Benih
Attrs Seed( int64 x )
Benih2
Attrs Seed2( int64 x )