Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/data/util/
Dnest.py77 def assert_same_structure(nest1, nest2, check_types=True): argument
96 _pywrap_utils.AssertSameStructureForData(nest1, nest2, check_types)
207 check_types = check_types_dict["check_types"]
209 check_types = True
212 assert_same_structure(structure[0], other, check_types=check_types)
232 def assert_shallow_structure(shallow_tree, input_tree, check_types=True): argument
274 if check_types and not isinstance(input_tree, type(shallow_tree)):
286 if check_types and isinstance(shallow_tree, _collections_abc.Mapping):
297 check_types=check_types)
Dnest_test.py232 nest.assert_same_structure(structure1, structure2, check_types=False)
233 nest.assert_same_structure(structure1, structure1_list, check_types=False)
242 check_types=False)
244 structure1_list, structure2_list, check_types=False)
278 check_types=False)
284 nest.map_structure(lambda x: None, structure1, check_types=False, foo="a")
303 nest.assert_shallow_structure(inp_ab2, inp_ab1, check_types=False)
/external/tensorflow/tensorflow/python/ops/
Dop_selector.py80 def get_unique_graph(tops, check_types=None, none_if_empty=False): argument
100 if check_types is None:
101 check_types = (ops.Operation, ops.Tensor)
102 elif not is_iterable(check_types):
103 check_types = (check_types,)
106 if not isinstance(op, check_types):
108 t) for t in check_types]), type(op)))
159 check_types = None if ignore_ops else ops.Tensor
160 get_unique_graph(ts, check_types=check_types)
224 check_types = None if ignore_ts else ops.Operation
[all …]
/external/tensorflow/tensorflow/python/util/
Dnest.py438 def assert_same_structure(nest1, nest2, check_types=True, argument
522 check_types = bool(check_types)
525 _pywrap_utils.AssertSameStructure(nest1, nest2, check_types,
851 check_types = kwargs.pop("check_types", True)
860 assert_same_structure(structure[0], other, check_types=check_types,
984 check_types=True, argument
1037 if check_types and not isinstance(input_tree, shallow_type):
1106 check_types=check_types,
1111 def flatten_up_to(shallow_tree, input_tree, check_types=True, argument
1189 check_types=check_types,
[all …]
Dnest_test.py417 nest.assert_same_structure(structure1, structure2, check_types=False)
418 nest.assert_same_structure(structure1, structure1_list, check_types=False)
515 check_types=False)
519 check_types=False)
525 nest.map_structure(lambda x: None, structure1, check_types=False, foo="a")
593 nest.assert_shallow_structure(inp_ab2, inp_ab1, check_types=False)
610 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=False)
611 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=True)
617 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=False)
618 nest.assert_shallow_structure(inp_shallow, inp_deep, check_types=True)
[all …]
Dutil_wrapper.cc213 [](const py::handle& o1, const py::handle& o2, bool check_types, in PYBIND11_MODULE()
216 o1.ptr(), o2.ptr(), check_types, expand_composites); in PYBIND11_MODULE()
305 [](const py::handle& o1, const py::handle& o2, bool check_types) { in PYBIND11_MODULE() argument
307 o1.ptr(), o2.ptr(), check_types); in PYBIND11_MODULE()
Dutil.h225 PyObject* AssertSameStructure(PyObject* o1, PyObject* o2, bool check_types,
282 bool check_types);
Dutil.cc720 PyObject* o1, PyObject* o2, bool check_types, string* error_msg, in AssertSameStructureHelper() argument
745 if (check_types) { in AssertSameStructureHelper()
896 v1.get(), v2.get(), check_types, error_msg, is_type_error, in AssertSameStructureHelper()
1079 PyObject* AssertSameStructure(PyObject* o1, PyObject* o2, bool check_types, in AssertSameStructure() argument
1088 AssertSameStructureHelper(o1, o2, check_types, &error_msg, &is_type_error, in AssertSameStructure()
1110 bool check_types) { in AssertSameStructureForData() argument
1113 AssertSameStructureHelper(o1, o2, check_types, &error_msg, &is_type_error, in AssertSameStructureForData()
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/kprobe/
Dkprobe_args_type.tc13 check_types() { # s-type u-type x-type bf-type width
42 check_types $ARGS $width
/external/llvm-project/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/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.py257 check_types=True): argument
260 s1, s2, expand_composites=True, check_types=check_types)
/external/tensorflow/tensorflow/python/keras/engine/
Dcompile_utils.py346 self._metrics = nest.flatten_up_to(y_pred, self._metrics, check_types=False)
348 y_pred, self._weighted_metrics, check_types=False)
/external/tensorflow/tensorflow/python/tpu/
Dtpu.py1339 nest.assert_same_structure(inputs[0], maximum_shapes, check_types=False)
1359 check_types=False)
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures_test.py722 check_types=True))
/external/tensorflow/tensorflow/python/data/ops/
Ddataset_ops.py4217 def check_types(component_spec): function
4222 nest.map_structure(check_types, input_dataset.element_spec)
/external/tensorflow/tensorflow/python/eager/
Dfunction.py2830 check_types=False) # lists are convert to tuples for `tf.data`.