Home
last modified time | relevance | path

Searched refs:test_obj (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/python/keras/distribute/
Dmulti_worker_callback_tf2_test.py54 def _model_setup(test_obj, file_format): argument
78 saving_filepath = os.path.join(test_obj.get_temp_dir(),
98 test_obj, file_format): argument
101 test_obj, file_format)
111 test_obj.get_temp_dir(), 'checkpoint_%s_%d%s' %
115 test_obj.assertFalse(checkpoint_exists(saving_filepath))
129 test_obj.assertEqual(
136 test_obj.assertEqual(
151 test_obj, saving_filepath): argument
152 model, _, train_ds, steps = _model_setup(test_obj, file_format='')
[all …]
/external/llvm-project/libcxxabi/test/
Dguard_threaded_test.pass.cpp191 FunctionLocalStatic<GuardType, Impl> test_obj; in test_free_for_all() local
197 test_obj.access_callback([&]() { in test_free_for_all()
206 assert(test_obj.get_count(PERFORMED) == 1); in test_free_for_all()
207 assert(test_obj.get_count(COMPLETE) + test_obj.get_count(WAITED) == num_waiters - 1); in test_free_for_all()
212 FunctionLocalStatic<GuardType, Impl> test_obj; in test_waiting_for_init() local
217 threads.Create(test_obj.access_callback( in test_waiting_for_init()
232 test_obj.access_callback([]() { assert(false); }) in test_waiting_for_init()
240 assert(test_obj.get_count(PERFORMED) == 1); in test_waiting_for_init()
241 assert(test_obj.get_count(ABORTED) == 0); in test_waiting_for_init()
242 assert(test_obj.get_count(COMPLETE) + test_obj.get_count(WAITED) == num_waiters); in test_waiting_for_init()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddecorators_test.py288 test_obj = self._MethodDecoratorTestObject(self)
292 test_obj.alwaysTimesOut(timeout=1, retries=0)
298 self.assertEquals(1, test_obj.function_call_counters['alwaysTimesOut'])
302 test_obj = self._MethodDecoratorTestObject(self)
305 test_obj.alwaysRaisesCommandFailedError(retries=10)
310 11, test_obj.function_call_counters['alwaysRaisesCommandFailedError'])
314 test_obj = self._MethodDecoratorTestObject(
316 self.assertEquals(42, test_obj.alwaysReturnsTimeout())
317 self.assertEquals(41, test_obj.alwaysReturnsTimeout(timeout=41))
318 self.assertEquals(31, test_obj.alwaysReturnsRetries())
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils_test.py418 test_obj = TestClass()
420 inspect_utils.getmethodclass(test_obj.member_function),
423 inspect_utils.getmethodclass(test_obj.decorated_member),
426 inspect_utils.getmethodclass(test_obj.fn_decorated_member),
429 inspect_utils.getmethodclass(test_obj.wrap_decorated_member),
432 inspect_utils.getmethodclass(test_obj.static_method),
435 inspect_utils.getmethodclass(test_obj.class_method),
476 test_obj = LocalClass()
478 inspect_utils.getmethodclass(test_obj.member_function),
481 inspect_utils.getmethodclass(test_obj.decorated_member),
[all …]
/external/tensorflow/tensorflow/python/autograph/impl/
Dconversion_test.py108 test_obj = TestClass()
116 weakref.ref(test_obj), test_obj.member_function))
/external/tensorflow/tensorflow/python/keras/utils/
Dlayer_utils_test.py118 test_obj = MyObject()
122 results = pool.map(test_obj.get_test_property, range(64))
131 results = pool.map(test_obj.get_test_property, range(4))
/external/autotest/client/common_lib/
Dpowerplay_util.py20 def __init__(self, test_obj, record_interval=0): argument
26 self.test = test_obj
/external/autotest/client/site_tests/platform_TLSDate/
Dplatform_TLSDate.py19 def __init__(self, test_obj): argument
25 self._test_obj = test_obj
/external/tensorflow/tensorflow/python/profiler/integration_test/
Dprofiler_api_test.py56 def _make_temp_log_dir(test_obj): argument
57 return test_obj.get_temp_dir()
/external/tensorflow/tensorflow/python/util/
Dtf_inspect_test.py275 test_obj = Callable()
276 self.assertEqual(argspec, tf_inspect.getargspec(test_obj))
456 test_obj = Callable()
457 self.assertEqual(argspec, tf_inspect.getfullargspec(test_obj))
/external/tensorflow/tensorflow/python/distribute/
Dmulti_worker_test_base.py438 def skip_if_grpc_server_cant_be_started(test_obj): argument
444 test_obj.test_skipped_reason = reason
445 test_obj.skipTest(reason)
/external/autotest/server/cros/dynamic_suite/
Dsuite.py398 test_obj = self._afe.create_job(
417 test_obj.test_name = test.name
418 return test_obj
/external/tensorflow/tensorflow/python/keras/engine/
Dbase_layer_test.py1242 test_obj = self
1247 with test_obj.assertRaisesRegex(TypeError, 'Tensor.*as.*bool'):
/external/tensorflow/tensorflow/python/framework/
Dtest_util.py467 def skip_if_error(test_obj, error_type, messages=None): argument
493 test_obj.skipTest("Skipping error: {}: {}".format(type(e), str(e)))