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

Function model

tensorflow/python/data/experimental/ops/optimization.py:47–59  ·  view source on GitHub ↗

A transformation that models performance. Returns: A `Dataset` transformation function, which can be passed to `tf.data.Dataset.apply`.

()

Source from the content-addressed store, hash-verified

45
46
47def model():
48 """A transformation that models performance.
49
50 Returns:
51 A `Dataset` transformation function, which can be passed to
52 `tf.data.Dataset.apply`.
53 """
54
55 def _apply_fn(dataset):
56 """Function from `Dataset` to `Dataset` that applies the transformation."""
57 return dataset_ops._ModelDataset(dataset) # pylint: disable=protected-access
58
59 return _apply_fn
60
61
62def non_serializable():

Callers 15

_step_fnFunction · 0.85
mainFunction · 0.85
testBasicsMethod · 0.85
testSaveByDictMethod · 0.85
testRestoreOnCreateMethod · 0.85
testRestoreNotFoundMethod · 0.85
mean_square_lossFunction · 0.85
train_one_iterFunction · 0.85
test_training_graphMethod · 0.85
model_fnFunction · 0.85
model_fnFunction · 0.85

Calls

no outgoing calls

Tested by 15

testBasicsMethod · 0.68
testSaveByDictMethod · 0.68
testRestoreOnCreateMethod · 0.68
testRestoreNotFoundMethod · 0.68
train_one_iterFunction · 0.68
test_training_graphMethod · 0.68
_benchmark_applyMethod · 0.68
testApplyMethod · 0.68
_benchmark_applyMethod · 0.68
testApplyMethod · 0.68