MCPcopy Create free account
hub / github.com/alibaba/nann / filter

Method filter

tensorflow/tensorflow/python/data/ops/dataset_ops.py:1331–1353  ·  view source on GitHub ↗

Filters this dataset according to `predicate`. ```python d = tf.data.Dataset.from_tensor_slices([1, 2, 3]) d = d.filter(lambda x: x < 3) # ==> [1, 2] # `tf.math.equal(x, y)` is required for equality comparison def filter_fn(x): return tf.math.equal(x, 1) d = d.filt

(self, predicate)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

mainFunction · 0.45
find_filesFunction · 0.45
testMapAndFilterMethod · 0.45
MakeRowFilterMethod · 0.45
fnMethod · 0.45
testNestedStructureMethod · 0.45
testFilterInputsMethod · 0.45
new_filter_fnFunction · 0.45
filterMethod · 0.45

Calls 1

FilterDatasetClass · 0.85

Tested by 15

mainFunction · 0.36
testMapAndFilterMethod · 0.36
MakeRowFilterMethod · 0.36
fnMethod · 0.36
testNestedStructureMethod · 0.36
testFilterInputsMethod · 0.36
new_filter_fnFunction · 0.36