Saling mengakumulasi beberapa tensor dengan jenis dan bentuk yang identik.
`is_stateless` berarti setiap operasi tidak memerlukan ketergantungan kontrol ke operasi kolektif lainnya. Dalam hal ini, kunci yang unik pada waktu proses (misalnya `instance_key`) harus digunakan untuk membedakan grup kolektif.
Kelas Bersarang
kelas | CollectiveGatherV2.Opsi | Atribut opsional untuk CollectiveGatherV2 |
Metode Publik
Keluaran <T> | sebagai Keluaran () Mengembalikan pegangan simbolik tensor. |
CollectiveGatherV2.Options statis | Petunjuk komunikasi (Petunjuk komunikasi string) |
statis <T memperluas Nomor> CollectiveGatherV2 <T> | |
Keluaran <T> | data () |
CollectiveGatherV2.Options statis | isStateless (Boolean isStateless) |
CollectiveGatherV2.Options statis | timeoutSeconds (Float timeoutSeconds) |
Metode Warisan
Metode Publik
Keluaran publik <T> sebagai Keluaran ()
Mengembalikan pegangan simbolik tensor.
Masukan ke operasi TensorFlow adalah keluaran dari operasi TensorFlow lainnya. Metode ini digunakan untuk mendapatkan pegangan simbolis yang mewakili perhitungan input.
public static CollectiveGatherV2 <T> buat ( Lingkup cakupan , masukan Operand <T>, Operand <Integer> groupSize, Operand <Integer> groupKey, Operand <Integer> instanceKey, Iterable< Operand <?>> orderingToken, Opsi... opsi)
Metode pabrik untuk membuat kelas yang membungkus operasi CollectiveGatherV2 baru.
Parameter
cakupan | ruang lingkup saat ini |
---|---|
pilihan | membawa nilai atribut opsional |
Kembali
- contoh baru dari CollectiveGatherV2