Home
last modified time | relevance | path

Searched refs:model_fn (Results 1 – 25 of 69) sorted by relevance

123

/external/tensorflow/tensorflow/python/distribute/
Dmirrored_strategy_test.py338 def model_fn(): function
360 result = distribution.extended.call_for_each_replica(model_fn)
376 def model_fn(): function
382 in_model_fn = distribution.extended.call_for_each_replica(model_fn)
390 in_model_fn = distribution.extended.call_for_each_replica(model_fn)
398 def model_fn(): function
403 result = distribution.extended.call_for_each_replica(model_fn)
412 def model_fn(): function
418 return distribution.extended.call_for_each_replica(model_fn)
434 def model_fn(): function
[all …]
Dmirrored_variable_test.py104 def model_fn(): function
111 v2 = distribution.extended.call_for_each_replica(model_fn)
122 def model_fn(): function
132 distribution.extended.call_for_each_replica(model_fn))
138 def model_fn(): function
147 result = distribution.extended.call_for_each_replica(model_fn)
152 def model_fn(): function
158 result = distribution.extended.call_for_each_replica(model_fn)
163 def model_fn(): function
171 result = distribution.extended.call_for_each_replica(model_fn)
[all …]
Dsingle_loss_example.py65 def model_fn(x): function
79 return model_fn, dataset_fn, layer
102 def model_fn(x): function
121 return model_fn, dataset_fn, batchnorm
/external/tensorflow/tensorflow/python/estimator/
DBUILD28 ":model_fn",
60 name = "model_fn",
61 srcs = ["model_fn.py"],
104 ":model_fn",
120 ":model_fn",
133 ":model_fn",
146 ":model_fn",
163 ":model_fn",
183 ":model_fn",
211 ":model_fn",
[all …]
Dmodel_fn.py26 from tensorflow_estimator.python.estimator import model_fn
30 model_fn.__all__ = [s for s in dir(model_fn) if not s.startswith('__')]
32 from tensorflow_estimator.python.estimator.model_fn import *
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dcheckpoint_input_pipeline_hook_test.py36 from tensorflow_estimator.python.estimator import model_fn
58 return model_fn.EstimatorSpec(
84 est = estimator.Estimator(model_fn=self._model_fn)
99 est = estimator.Estimator(model_fn=self._model_fn)
112 est = estimator.Estimator(model_fn=self._model_fn)
128 est = estimator.Estimator(model_fn=self._model_fn)
/external/tensorflow/tensorflow/python/keras/distribute/
Dtest_example.py42 def model_fn(x): function
56 return model_fn, dataset_fn, layer
79 def model_fn(x): function
98 return model_fn, dataset_fn, batchnorm
Dminimize_loss_test.py95 model_fn, dataset_fn, layer = minimize_loss_example(
102 model_fn, args=(inputs,)))
138 model_fn, dataset_fn, layer = minimize_loss_example(
146 model_fn, args=(iterator.get_next(),)))
190 model_fn, dataset_fn, _ = minimize_loss_example(
197 model_fn, args=(inputs,)))
251 model_fn, dataset_fn, batchnorm = batchnorm_example(
262 model_fn, args=(inputs,)))
339 def model_fn(inputs): function
372 model_fn, args=(inputs,)))
[all …]
Dkeras_correctness_test_base.py256 model_fn, argument
261 model = model_fn(
489 model_fn=self.get_model,
495 model_fn=self.get_model,
583 model_fn=self.get_model,
588 model_fn=self.get_model,
Dmirrored_variable_test.py75 def model_fn(features): function
98 model_fn, args=(features,))
Dkeras_optimizer_v2_test.py62 def model_fn(): function
74 model_fn)
/external/tensorflow/tensorflow/python/keras/tests/
Dmodel_architectures_test.py76 def test_basic_saving_and_loading(self, model_fn): argument
79 if 'subclassed_in_functional' in model_fn.__name__:
85 elif ('subclassed' in model_fn.__name__ and save_format == 'h5'):
90 model_data = model_fn()
/external/tensorflow/tensorflow/python/tpu/
Dasync_checkpoint_test.py44 from tensorflow_estimator.python.estimator import model_fn as model_fn_lib
65 def model_fn(features, labels, mode, params): function
114 model_fn=model_fn,
164 model_fn=model_fn,
/external/tensorflow/tensorflow/core/platform/
Dram_file_system_test.py26 from tensorflow.python.estimator.model_fn import EstimatorSpec
101 def model_fn(features, labels, mode, params): function
124 estimator = Estimator(config=config, model_fn=model_fn)
/external/tensorflow/tensorflow/python/keras/integration_test/
Dvectorized_map_test.py29 def model_fn(arg): function
40 per_example_gradients = tf.vectorized_map(model_fn, (inputs, labels))
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.estimator.-estimator-spec.pbtxt3 is_instance: "<class \'tensorflow_estimator.python.estimator.model_fn.EstimatorSpec\'>"
4 is_instance: "<class \'tensorflow_estimator.python.estimator.model_fn.EstimatorSpec\'>"
Dtensorflow.estimator.-estimator.pbtxt15 name: "model_fn"
24 …argspec: "args=[\'self\', \'model_fn\', \'model_dir\', \'config\', \'params\', \'warm_start_from\'…
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.estimator.-estimator-spec.pbtxt3 is_instance: "<class \'tensorflow_estimator.python.estimator.model_fn.EstimatorSpec\'>"
4 is_instance: "<class \'tensorflow_estimator.python.estimator.model_fn.EstimatorSpec\'>"
Dtensorflow.estimator.tpu.-t-p-u-estimator-spec.pbtxt4 is_instance: "<class \'tensorflow_estimator.python.estimator.model_fn._TPUEstimatorSpec\'>"
5 is_instance: "<class \'tensorflow_estimator.python.estimator.model_fn.TPUEstimatorSpec\'>"
Dtensorflow.estimator.-estimator.pbtxt14 name: "model_fn"
23 …argspec: "args=[\'self\', \'model_fn\', \'model_dir\', \'config\', \'params\', \'warm_start_from\'…
Dtensorflow.estimator.tpu.-t-p-u-estimator.pbtxt15 name: "model_fn"
24 …argspec: "args=[\'self\', \'model_fn\', \'model_dir\', \'config\', \'params\', \'use_tpu\', \'trai…
/external/tensorflow/tensorflow/python/keras/benchmarks/
Doptimizer_benchmarks_test.py30 def model_fn(): function
44 return model_fn, x_train, y_train
Dbenchmark_util.py98 def measure_performance(model_fn, argument
172 model = model_fn()
/external/tensorflow/tensorflow/python/framework/experimental/
Dunified_api_test.py125 model_fn = def_function.function(model)
126 func_output = model_fn(positive)
128 func_output = model_fn(negative)
155 model_fn = def_function.function(model)
156 func_output = model_fn(positive)
158 func_output = model_fn(negative)
/external/tensorflow/tensorflow/python/keras/applications/
Dapplications_test.py138 def _get_output_shape(model_fn): argument
139 model = model_fn()

123