tensorflow::ops::SetDiff1D
#include <array_ops.h>İki sayı veya metin listesi arasındaki farkı hesaplar.
Özet
Verilen bir x ve bir y listesi için, bu işlem x olup y olmayan tüm değerleri temsil eden bir out listesi döndürür. Döndürülen out listesi, sayıların x göründüğü sırayla sıralanır (yinelenenler korunur). Bu işlem ayrıca, her out elemanının x konumunu temsil eden bir idx listesi de döndürür. Başka bir deyişle:
out[i] = x[idx[i]] for i in [0, 1, ..., len(out) - 1]
Örneğin, şu girdiyi ele alalım:
x = [1, 2, 3, 4, 5, 6] y = [1, 3, 5]
Bu işlem şu sonucu verecektir:
out ==> [2, 4, 6] idx ==> [1, 3, 5]
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- x: 1 boyutlu. Saklanacak değerler.
- y: 1 boyutlu. Kaldırılacak değerler.
İadeler:
-
Output: 1 boyutlu.xekseninde bulunan ancakyekseninde bulunmayan değerler. -
Outputindeksi: 1 boyutlu.xdeğerlerinin konumlarıoutkorunur.
Yapıcılar ve Yıkıcılar | |
|---|---|
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) |
Genel özellikler | |
|---|---|
idx | |
operation | |
out | |
Herkese açık statik fonksiyonlar | |
|---|---|
OutIdx (DataType x) | |
Yapılar | |
|---|---|
| tensorflow::ops::SetDiff1D::Attrs | SetDiff1D için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
idx
::tensorflow::Output idx
operasyon
Operation operation
dışarı
::tensorflow::Output out
Kamusal işlevler
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 )
Herkese açık statik fonksiyonlar
ÇıkışDizin
Attrs OutIdx( DataType x )