Peringatan: API ini tidak digunakan lagi dan akan dihapus di versi TensorFlow mendatang setelah penggantinya stabil.

CollectiveReduceV2

public class akhir CollectiveReduceV2

Saling mengurangi beberapa tensor dengan jenis dan bentuk yang identik.

Kelas Bersarang

kelas CollectiveReduceV2.Options Atribut opsional untuk CollectiveReduceV2

Metode Publik

Output <T>
asOutput ()
Mengembalikan pegangan simbolis tensor.
statis CollectiveReduceV2.Options
communicationHint (String communicationHint)
statis <T meluas Nomor> CollectiveReduceV2 <T>
membuat ( Lingkup lingkup, Operan <T> input, Operan <Integer> groupSize, Operan <Integer> groupKey, Operan <Integer> instanceKey, Iterable < Operan <? >> orderingToken, String mergeOp, String finalOp, Options ... pilihan)
Metode pabrik untuk membuat kelas yang membungkus operasi CollectiveReduceV2 baru.
Output <T>
Data ()
statis CollectiveReduceV2.Options
maxSubdivsPerDevice (Long maxSubdivsPerDevice)
statis CollectiveReduceV2.Options
timeoutSeconds (timeoutSeconds Lampung)

Metode yang Diwarisi

Metode Publik

publik Keluaran <T> asOutput ()

Mengembalikan pegangan simbolis tensor.

Input ke operasi TensorFlow adalah output dari operasi TensorFlow lainnya. Metode ini digunakan untuk mendapatkan pegangan simbolis yang mewakili perhitungan input.

public static CollectiveReduceV2.Options communicationHint (String communicationHint)

public static CollectiveReduceV2 <T> membuat ( Lingkup lingkup, Operan <T> input, Operan <Integer> groupSize, Operan <Integer> groupKey, Operan <Integer> instanceKey, Iterable < Operan <? >> orderingToken, String mergeOp, String finalOp, Pilihan ... Pilihan)

Metode pabrik untuk membuat kelas yang membungkus operasi CollectiveReduceV2 baru.

Parameter
cakupan lingkup saat ini
pilihan membawa nilai atribut opsional
Kembali
  • contoh baru CollectiveReduceV2

publik Keluaran <T> data ()

public static CollectiveReduceV2.Options maxSubdivsPerDevice (Long maxSubdivsPerDevice)

public static CollectiveReduceV2.Options timeoutSeconds (Lampung timeoutSeconds)