tensorflow::ops::RandomUniform

#include <random_ops.h>

Menghasilkan nilai acak dari distribusi seragam.

Ringkasan

Nilai yang dihasilkan mengikuti distribusi seragam dalam rentang [0, 1) . Batas bawah 0 termasuk dalam rentang tersebut, sedangkan batas atas 1 dikecualikan.

Argumen:

  • Cakupan: Objek Cakupan
  • bentuk: Bentuk tensor keluaran.
  • dtype: Tipe output.

Atribut opsional (lihat Attrs ):

  • seed: Jika seed atau seed2 diatur ke nilai bukan nol, generator angka acak akan diinisialisasi dengan seed yang diberikan. Jika tidak, generator akan diinisialisasi dengan seed acak.
  • seed2: Benih kedua untuk menghindari benturan benih.

Mengembalikan:

  • Output : Sebuah tensor dengan bentuk yang ditentukan yang diisi dengan nilai acak seragam.

Konstruktor dan Destruktor

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)

Struktur

tensorflow::ops::RandomUniform::Attrs

Pengaturan atribut opsional untuk RandomUniform .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

Seragam Acak

 RandomUniform(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype
)

Seragam Acak

 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::Output

 operator::tensorflow::Output() const 

Fungsi statis publik

Benih

Attrs Seed(
  int64 x
)

Benih 2

Attrs Seed2(
  int64 x
)