MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / dataset_fn

Function dataset_fn

tensorflow/python/distribute/single_loss_example.py:35–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 """Build a very simple network to use in tests and examples."""
34
35 def dataset_fn():
36 return dataset_ops.Dataset.from_tensors([[1.]]).repeat()
37
38 optimizer = optimizer_fn()
39 layer = core.Dense(1, use_bias=use_bias)

Callers 15

testTrainNetworkMethod · 0.85
testZipDatasetMethod · 0.85
testShuffleDatasetMethod · 0.85
fnMethod · 0.85
checkUnaryInputsMethod · 0.85
checkBinaryInputsMethod · 0.85
checkVariadicInputsMethod · 0.85
_testTextLineDatasetMethod · 0.85

Calls 5

rangeFunction · 0.50
repeatMethod · 0.45
from_tensorsMethod · 0.45
batchMethod · 0.45
from_tensor_slicesMethod · 0.45

Tested by 15

testTrainNetworkMethod · 0.68
testZipDatasetMethod · 0.68
testShuffleDatasetMethod · 0.68
fnMethod · 0.68
checkUnaryInputsMethod · 0.68
checkBinaryInputsMethod · 0.68
checkVariadicInputsMethod · 0.68
_testTextLineDatasetMethod · 0.68