Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ even
Method
even
tensorflow/contrib/eager/python/datasets_test.py:108–109 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
106
def
testMapAndFilter(self):
107
108
def
even(x):
109
return
math_ops.equal(math_ops.mod(x, 2), 0)
110
111
it = datasets.Iterator(
112
dataset_ops.Dataset.range(8).map(math_ops.square).filter(even))
Callers
nothing calls this directly
Calls
2
equal
Method · 0.80
mod
Method · 0.80
Tested by
no test coverage detected