tensorflow::ops::RandomShuffle

#include <random_ops.h>

Mengacak tensor secara acak sepanjang dimensi pertamanya.

Ringkasan

Tensor tersebut diacak sepanjang dimensi 0, sehingga setiap value[j] dipetakan ke satu dan hanya satu output[i] . Misalnya, pemetaan yang mungkin terjadi untuk tensor 3x2 adalah:

[[1, 2],       [[5, 6],
 [3, 4],  ==>   [1, 2],
 [5, 6]]        [3, 4]]

Argumen:

  • Cakupan: Objek Cakupan
  • nilai: Tensor yang akan diacak.

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 dan tipe yang sama dengan value , diacak sepanjang dimensi pertamanya.

Konstruktor dan Destruktor

RandomShuffle (const :: tensorflow::Scope & scope, :: tensorflow::Input value)
RandomShuffle (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const RandomShuffle::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::RandomShuffle::Attrs

Pengaturan atribut opsional untuk RandomShuffle .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

Acak

 RandomShuffle(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value
)

Acak

 RandomShuffle(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  const RandomShuffle::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
)