tf.contrib.metrics.set_difference(a, b, aminusb=True, validate_indices=True)
Compute set difference of elements in last dimension of a
and b
.
All but the last dimension of a
and b
must match.
Args:
-
a
:Tensor
orSparseTensor
of the same type asb
. If sparse, indices must be sorted in row-major order. -
b
:Tensor
orSparseTensor
of the same type asa
. Must beSparseTensor
ifa
isSparseTensor
. If sparse, indices must be sorted in row-major order. -
aminusb
: Whether to subtractb
froma
, vs vice versa. -
validate_indices
: Whether to validate the order and range of sparse indices ina
andb
.
Returns:
A SparseTensor
with the same rank as a
and b
, and all but the last dimension the same. Elements along the last dimension contain the differences.
Please login to continue.