tensorflow :: ops :: RandomShuffle

#include <random_ops.h>

Mengacak tensor secara acak di sepanjang dimensi pertamanya.

Ringkasan

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

  • scope: Objek Scope
  • nilai: Tensor yang akan dikocok.

Atribut opsional (lihat Attrs ):

  • benih: Jika salah satu seed atau seed2 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 dan jenis yang sama dengan value , diacak sepanjang dimensi pertamanya.

Pembuat dan Penghancur

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)

Structs

tensorflow :: ops :: RandomShuffle :: Attrs

Penyetel atribut opsional untuk RandomShuffle .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

RandomShuffle

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

RandomShuffle

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

 operator::tensorflow::Output() const 

Fungsi statis publik

Benih

Attrs Seed(
  int64 x
)

Benih2

Attrs Seed2(
  int64 x
)