aliran tensor:: operasi:: SetDiff1D
#include <array_ops.h>Menghitung perbedaan antara dua daftar angka atau string.
Ringkasan
 Mengingat daftar x dan daftar y , operasi ini out daftar yang mewakili semua nilai yang ada di x tetapi tidak di y . Daftar yang dikembalikan out dalam urutan yang sama dengan nomor yang muncul di x (duplikat dipertahankan). Operasi ini juga mengembalikan daftar idx yang mewakili posisi setiap elemen out di x . Dengan kata lain:
 out[i] = x[idx[i]] for i in [0, 1, ..., len(out) - 1]
Misalnya, dengan masukan ini:
x = [1, 2, 3, 4, 5, 6] y = [1, 3, 5]
Operasi ini akan mengembalikan:
out ==> [2, 4, 6] idx ==> [1, 3, 5]
Argumen:
- ruang lingkup: Objek Lingkup
- x: 1-D. Nilai-nilai yang harus dijaga.
- kamu: 1-D. Nilai yang akan dihapus.
Pengembalian:
-  Outputkeluar: 1-D. Nilai ada dixtetapi tidak diy.
-  IDX Output: 1-D. Posisi nilaixdipertahankan diout.
| Konstruktor dan Destruktor | |
|---|---|
| SetDiff1D (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y) | |
| SetDiff1D (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y, const SetDiff1D::Attrs & attrs) | 
| Atribut publik | |
|---|---|
| idx | |
| operation | |
| out | |
| Fungsi statis publik | |
|---|---|
| OutIdx (DataType x) | |
| Struktur | |
|---|---|
| tensorflow:: ops:: SetDiff1D:: Attrs | Penyetel atribut opsional untuk SetDiff1D . | 
Atribut publik
idx
::tensorflow::Output idx
operasi
Operation operation
keluar
::tensorflow::Output out
Fungsi publik
SetDiff1D
SetDiff1D( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
SetDiff1D
SetDiff1D( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y, const SetDiff1D::Attrs & attrs )
Fungsi statis publik
KeluarIdx
Attrs OutIdx( DataType x )