Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testTrainNetwork
Method · 0.85
testZipDataset
Method · 0.85
testFixedSeedResultsInRepeatableOrder
Method · 0.85
tesEmptyDirectoryInitializer
Method · 0.85
testShuffleDataset
Method · 0.85
fn
Method · 0.85
_testFixedLengthRecordDataset
Method · 0.85
checkUnaryInputs
Method · 0.85
checkBinaryInputs
Method · 0.85
checkVariadicInputs
Method · 0.85
_testTextLineDataset
Method · 0.85
testCacheDatasetPassthrough
Method · 0.85
Calls
5
range
Function · 0.50
repeat
Method · 0.45
from_tensors
Method · 0.45
batch
Method · 0.45
from_tensor_slices
Method · 0.45
Tested by
15
testTrainNetwork
Method · 0.68
testZipDataset
Method · 0.68
testFixedSeedResultsInRepeatableOrder
Method · 0.68
tesEmptyDirectoryInitializer
Method · 0.68
testShuffleDataset
Method · 0.68
fn
Method · 0.68
_testFixedLengthRecordDataset
Method · 0.68
checkUnaryInputs
Method · 0.68
checkBinaryInputs
Method · 0.68
checkVariadicInputs
Method · 0.68
_testTextLineDataset
Method · 0.68
testCacheDatasetPassthrough
Method · 0.68