Home
last modified time | relevance | path

Searched refs:check_types (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/python/data/util/
Dnest.py82 def assert_same_structure(nest1, nest2, check_types=True): argument
101 _pywrap_utils.AssertSameStructureForData(nest1, nest2, check_types)
215 check_types = check_types_dict["check_types"]
217 check_types = True
220 assert_same_structure(structure[0], other, check_types=check_types)
240 def assert_shallow_structure(shallow_tree, input_tree, check_types=True): argument
282 if check_types and not isinstance(input_tree, type(shallow_tree)):
294 if check_types and isinstance(shallow_tree, _collections_abc.Mapping):
305 check_types=check_types)
Dnest_test.py238 nest.assert_same_structure(structure1, structure2, check_types=False)
239 nest.assert_same_structure(structure1, structure1_list, check_types=False)
248 check_types=False)
250 structure1_list, structure2_list, check_types=False)
285 check_types=False)
291 nest.map_structure(lambda x: None, structure1, check_types=False, foo="a")
311 nest.assert_shallow_structure(inp_ab2, inp_ab1, check_types=False)
/external/tensorflow/tensorflow/python/ops/
Dop_selector.py76 def get_unique_graph(tops, check_types=None, none_if_empty=False): argument
96 if check_types is None:
97 check_types = (ops.Operation, ops.Tensor)
98 elif not is_iterable(check_types):
99 check_types = (check_types,)
102 if not isinstance(op, check_types):
104 t) for t in check_types]), type(op)))
156 check_types = None if ignore_ops else ops.Tensor
157 get_unique_graph(ts, check_types=check_types)
221 check_types = None if ignore_ts else ops.Operation
[all …]
Dwhile_v2.py207 nest.assert_same_structure(outputs, orig_loop_vars, check_types=False,
214 nest.assert_same_structure(vars1, vars2, check_types=False,
/external/tensorflow/tensorflow/python/util/
Dnest.py477 def assert_same_structure(nest1, nest2, check_types=True, argument
565 check_types = bool(check_types)
568 _pywrap_utils.AssertSameStructure(nest1, nest2, check_types,
901 check_types = kwargs.pop("check_types", True)
910 assert_same_structure(structure[0], other, check_types=check_types,
1034 check_types=True, argument
1087 if check_types and not isinstance(input_tree, shallow_type):
1156 check_types=check_types,
1161 def flatten_up_to(shallow_tree, input_tree, check_types=True, argument
1242 check_types=check_types,
[all …]
Dnest_test.py420 nest.assert_same_structure(structure1, structure2, check_types=False)
421 nest.assert_same_structure(structure1, structure1_list, check_types=False)
518 check_types=False)
522 check_types=False)
528 nest.map_structure(lambda x: None, structure1, check_types=False, foo="a")
596 nest.assert_shallow_structure(inp_ab2, inp_ab1, check_types=False)
613 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=False)
614 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=True)
620 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=False)
621 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=True)
[all …]
Dutil_wrapper.cc206 [](const py::handle& o1, const py::handle& o2, bool check_types, in PYBIND11_MODULE()
209 o1.ptr(), o2.ptr(), check_types, expand_composites); in PYBIND11_MODULE()
271 [](const py::handle& o1, const py::handle& o2, bool check_types) { in PYBIND11_MODULE() argument
273 o1.ptr(), o2.ptr(), check_types); in PYBIND11_MODULE()
Dutil.h198 PyObject* AssertSameStructure(PyObject* o1, PyObject* o2, bool check_types,
222 bool check_types);
Dutil.cc733 PyObject* o1, PyObject* o2, bool check_types, string* error_msg, in AssertSameStructureHelper() argument
758 if (check_types) { in AssertSameStructureHelper()
917 v1.get(), v2.get(), check_types, error_msg, is_type_error, in AssertSameStructureHelper()
1102 PyObject* AssertSameStructure(PyObject* o1, PyObject* o2, bool check_types, in AssertSameStructure() argument
1111 AssertSameStructureHelper(o1, o2, check_types, &error_msg, &is_type_error, in AssertSameStructure()
1133 bool check_types) { in AssertSameStructureForData() argument
1136 AssertSameStructureHelper(o1, o2, check_types, &error_msg, &is_type_error, in AssertSameStructureForData()
/external/python/bumble/
Dtasks.py153 def check_types(ctx): function
167 call(check_types),
178 project_tasks.add_task(check_types, name="check-types")
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/kprobe/
Dkprobe_args_type.tc10 check_types() { # s-type u-type x-type bf-type width
39 check_types $ARGS $width
/external/clang/test/CXX/expr/expr.unary/expr.sizeof/
Dp5-0x.cpp13 int check_types[count_types<short, int, long>::value == 3? 1 : -1]; variable
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.nest.pbtxt5 …argspec: "args=[\'nest1\', \'nest2\', \'check_types\', \'expand_composites\'], varargs=None, keywo…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.nest.pbtxt5 …argspec: "args=[\'nest1\', \'nest2\', \'check_types\', \'expand_composites\'], varargs=None, keywo…
Dtensorflow.__internal__.nest.pbtxt5 …argspec: "args=[\'shallow_tree\', \'input_tree\', \'check_types\', \'expand_composites\'], varargs…
/external/tensorflow/tensorflow/python/framework/
Dcomposite_tensor_test.py253 check_types=True): argument
256 s1, s2, expand_composites=True, check_types=check_types)
/external/tensorflow/tensorflow/python/keras/engine/
Dcompile_utils.py368 self._metrics = nest.flatten_up_to(y_pred, self._metrics, check_types=False)
370 y_pred, self._weighted_metrics, check_types=False)
/external/tensorflow/tensorflow/python/eager/
Dfunction_spec.py613 check_types=False) # lists are convert to tuples for `tf.data`.
/external/tensorflow/tensorflow/python/tpu/
Dtpu.py1376 nest.assert_same_structure(inputs[0], maximum_shapes, check_types=False)
1396 check_types=False)
/external/tensorflow/tensorflow/python/trackable/
Ddata_structures_test.py725 check_types=True))
/external/tensorflow/tensorflow/python/data/ops/
Ddataset_ops.py5322 def check_types(component_spec): function
5329 nest.map_structure(check_types, input_dataset.element_spec)