tensorflow :: ops :: RandomUniform
#include <random_ops.h>
Menghasilkan nilai acak dari distribusi seragam.
Ringkasan
Nilai yang dihasilkan mengikuti distribusi seragam dalam kisaran [0, 1)
. Batas bawah 0 disertakan dalam rentang, sedangkan batas atas 1 dikecualikan.
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 dengan bentuk tertentu yang diisi dengan nilai acak yang seragam.
Pembuat dan Penghancur | |
---|---|
RandomUniform (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype) | |
RandomUniform (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const RandomUniform::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 :: RandomUniform :: Attrs | Penyetel atribut opsional untuk RandomUniform . |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
RandomUniform
RandomUniform( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
RandomUniform
RandomUniform( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const RandomUniform::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 )