Home
last modified time | relevance | path

Searched refs:raise_exception (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/python/framework/
Dsmart_cond_test.py28 def raise_exception(): function
71 raise_exception)
104 (x == 0, raise_exception)]
105 y = smart_cond.smart_case(conditions, default=raise_exception,
107 z = smart_cond.smart_case(conditions, default=raise_exception,
116 conditions = [(False, raise_exception)]
132 (y < 1, raise_exception),
133 (False, raise_exception),
135 z = smart_cond.smart_case(conditions, default=raise_exception)
/external/autotest/client/deps/lansim/src/py/
Dsimulator_unittest.py17 def raise_exception(): function
109 self._sim.add_timeout(60, raise_exception)
111 self.assertTrue(self._sim.remove_timeout(raise_exception))
112 self.assertFalse(self._sim.remove_timeout(raise_exception))
166 self._sim.add_timeout(0.1, raise_exception)
/external/llvm/test/Analysis/ScalarEvolution/
Dtrip-count6.ll32 tail call void @raise_exception( ) noreturn
38 declare void @raise_exception() noreturn
/external/python/cpython3/Modules/_sqlite/
Dutil.c75 raise_exception(PyObject *type, int errcode, const char *errmsg) in raise_exception() function
138 raise_exception(exc_class, extended_errcode, errmsg); in _pysqlite_seterror()
/external/llvm/test/Transforms/LoopRotate/
Dsimplifylatch.ll33 tail call void @raise_exception( ) noreturn
39 declare void @raise_exception() noreturn
/external/tensorflow/tensorflow/lite/python/authoring/
Dauthoring.py68 raise_exception=False): argument
90 self._raise_exception = raise_exception
Dauthoring_test.py45 @authoring.compatible(raise_exception=True)
/external/toolchain-utils/llvm_tools/
Dwerror_logs_test.py403 def raise_exception(*_args, check=False, **_kwargs): function
407 run_mock.side_effect = raise_exception
/external/fonttools/Tests/ttx/
Dttx_test.py957 ttx, "process", (lambda x, y: raise_exception(KeyboardInterrupt))
969 monkeypatch.setattr(ttx, "process", (lambda x, y: raise_exception(SystemExit)))
981 (lambda x, y: raise_exception(TTLibError("Test error"))),
996 (lambda x, y: raise_exception(Exception("Test error"))),
1057 def raise_exception(exception): function
/external/python/absl-py/absl/tests/
Dapp_test_helper.py59 if FLAGS.raise_exception:
/external/pytorch/test/
Dtest_futures.py88 def raise_exception(unused_future): function
96 f2 = f1.then(raise_exception)
Dtest_autograd.py5675 raise_exception=False,
5686 raise_exception=False,
5696 gradcheck(lambda x: x, (x,), raise_exception=False, fast_mode=fast_mode)
5714 gradcheck(lambda x: x, (x,), raise_exception=False, fast_mode=fast_mode)
5736 raise_exception=False,
5752 raise_exception=False,
5774 raise_exception=False,
5787 raise_exception=False,
5806 raise_exception=False,
5838 raise_exception=False,
[all …]
Dtest_overrides.py919 … gradcheck(torch.add, (a, b), raise_exception=False, check_batched_grad=False, fast_mode=fast_mode)
920 …gradgradcheck(torch.add, (a, b), raise_exception=False, check_batched_grad=False, fast_mode=fast_m…
Dtest_foreach.py1423 raise_exception=True,
/external/pytorch/torch/
Dlibrary.py1219 raise_exception: bool = True,
1323 op, args, kwargs, test_utils=test_utils, raise_exception=raise_exception
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dauthoring.ipynb212 … to the `@tf.lite.experimental.authoring.compatible` decorator. The `raise_exception` option gives…
223 "@tf.lite.experimental.authoring.compatible(raise_exception=True)\n",
262 …lite.experimental.authoring.compatible(converter_target_spec=target_spec, raise_exception=True)\n",
/external/pytorch/torch/csrc/utils/
Dpython_arg_parser.cpp1469 bool raise_exception) { in parse() argument
1485 if (raise_exception) { in parse()
1502 if (raise_exception) { in parse()
1524 if (raise_exception) { in parse()
1542 } else if (raise_exception) { in parse()
1591 if (raise_exception) { in parse()
Dpython_arg_parser.h196 bool raise_exception);
/external/python/absl-py/absl/testing/tests/
Dflagsaver_test.py240 def raise_exception(): function
246 self.assertRaises(_TestError, raise_exception)
/external/tensorflow/tensorflow/python/kernel_tests/control_flow/
Dpy_func_test.py61 def raise_exception(): function
74 f = script_ops.eager_py_func(raise_exception, [], [])
77 f = script_ops.eager_py_func(raise_exception, [], [])
79 f = script_ops.py_func(raise_exception, [], [])
/external/pytorch/torch/testing/_internal/optests/
Dgenerate_tests.py627 raise_exception: bool = True,
661 if raise_exception:
/external/pytorch/torch/autograd/
Dgradcheck.py1957 raise_exception: bool = True,
2046 if not raise_exception:
2124 raise_exception: bool = True,
2260 raise_exception=raise_exception,
/external/python/cpython3/Lib/test/test_importlib/
Dtest_abc.py860 def raise_exception(exc): function
866 self.loader.set_data = raise_exception(NotImplementedError)
/external/python/cpython3/Lib/test/
Dtest_exceptions.py356 _testcapi.raise_exception(BadException, 1)
367 _testcapi.raise_exception(BadException, 0)
380 self.assertRaises(SystemError, _testcapi.raise_exception,
/external/pytorch/test/inductor/
Dtest_flex_attention.py960 func, (query, key, value, score_mod), raise_exception=True
984 func, (query, key, value, score_mod), raise_exception=True

12