Home
last modified time | relevance | path

Searched refs:assert_same_structure (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/python/data/util/
Dnest_test.py189 nest.assert_same_structure(structure1, structure2)
190 nest.assert_same_structure("abc", 1.0)
191 nest.assert_same_structure("abc", np.array([0, 1]))
192 nest.assert_same_structure("abc", constant_op.constant([0, 1]))
196 nest.assert_same_structure(structure1, structure_different_num_elements)
200 nest.assert_same_structure((0, 1), np.array([0, 1]))
204 nest.assert_same_structure(0, (0, 1))
208 nest.assert_same_structure(structure1, structure_different_nesting)
212 self.assertRaises(TypeError, nest.assert_same_structure, (0, 1),
215 nest.assert_same_structure(named_type_0(3, 4), named_type_0("a", "b"))
[all …]
Dnest.py77 def assert_same_structure(nest1, nest2, check_types=True): function
212 assert_same_structure(structure[0], other, check_types=check_types)
Dsparse_test.py329 nest.assert_same_structure(expected, actual)
359 nest.assert_same_structure(expected, actual)
Dstructure.py333 nest.assert_same_structure(element_spec, element)
409 nest.assert_same_structure(spec1, spec2)
/external/tensorflow/tensorflow/python/util/
Dnest_test.py348 nest.assert_same_structure(structure1, structure2)
349 nest.assert_same_structure("abc", 1.0)
350 nest.assert_same_structure("abc", np.array([0, 1]))
351 nest.assert_same_structure("abc", constant_op.constant([0, 1]))
365 nest.assert_same_structure(structure1, structure_different_num_elements)
375 nest.assert_same_structure([0, 1], np.array([0, 1]))
385 nest.assert_same_structure(0, [0, 1])
387 self.assertRaises(TypeError, nest.assert_same_structure, (0, 1), [0, 1])
392 nest.assert_same_structure(structure1, structure_different_nesting)
394 self.assertRaises(TypeError, nest.assert_same_structure, (0, 1),
[all …]
Dnest.py438 def assert_same_structure(nest1, nest2, check_types=True, function
860 assert_same_structure(structure[0], other, check_types=check_types,
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils.py92 nest.assert_same_structure(
95 nest.assert_same_structure(
99 nest.assert_same_structure(
/external/tensorflow/tensorflow/python/ops/
Drnn.py246 nest.assert_same_structure(zero_output, new_output)
247 nest.assert_same_structure(state, new_state)
266 nest.assert_same_structure(zero_output, new_output)
267 nest.assert_same_structure(state, new_state)
1123 nest.assert_same_structure(initial_state, cell.state_size)
1182 nest.assert_same_structure(state, cell_state)
1183 nest.assert_same_structure(cell.output_size, next_output)
1190 nest.assert_same_structure(state, next_state)
1191 nest.assert_same_structure(current_input, next_input)
1192 nest.assert_same_structure(emit_ta, emit_output)
Dfunctional_ops.py648 nest.assert_same_structure(elems if initializer is None else initializer,
854 nest.assert_same_structure(then_out, else_out, expand_composites=True)
Dcontrol_flow_ops.py421 nest.assert_same_structure(inputs[0], v, expand_composites=True)
1296 nest.assert_same_structure(orig_res_t, orig_res_f, expand_composites=True)
1301 nest.assert_same_structure(orig_res_t, orig_res_f,
2246 nest.assert_same_structure(
2781 nest.assert_same_structure(loop_var_structure, list(loop_vars))
2798 nest.assert_same_structure(
Dmap_fn.py492 nest.assert_same_structure(fn_output_signature or elems, result_value)
Dwhile_v2.py83 nest.assert_same_structure(orig_loop_vars, shape_invariants,
185 nest.assert_same_structure(list(outputs), list(orig_loop_vars),
/external/tensorflow/tensorflow/python/framework/
Dcomposite_tensor_test.py206 nest.assert_same_structure(s1, s2, expand_composites=expand_composites)
227 nest.assert_same_structure(s1, s2, expand_composites=False)
230 nest.assert_same_structure(s1, s2, expand_composites=True)
410 nest.assert_same_structure(value, spec, expand_composites=True)
Dfunc_graph.py314 nest.assert_same_structure(spec, ret_nest, expand_composites=True)
1082 nest.assert_same_structure(n1, n2, expand_composites=True)
/external/tensorflow/tensorflow/python/data/ops/
Diterator_ops.py203 nest.assert_same_structure(output_types, output_shapes)
277 nest.assert_same_structure(output_types, output_shapes)
335 nest.assert_same_structure(self.output_types, dataset_output_types)
336 nest.assert_same_structure(self.output_shapes, dataset_output_shapes)
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.nest.pbtxt4 name: "assert_same_structure"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.nest.pbtxt4 name: "assert_same_structure"
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures_test.py182 nest.assert_same_structure(l, data_structures.ListWrapper(copy.copy(l)))
504 nest.assert_same_structure(d, data_structures._DictWrapper(d.copy()))
657 nest.assert_same_structure(
679 nest.assert_same_structure(t, m.t)
680 nest.assert_same_structure(m.t, t)
685 nest.assert_same_structure(m.nt, nt)
687 nest.assert_same_structure(m.nt, m.t)
/external/tensorflow/tensorflow/python/distribute/
Dinput_lib_type_spec_test.py190 nest.assert_same_structure(element_spec, iter_element_spec)
317 nest.assert_same_structure(element_spec, iter_element_spec)
509 nest.assert_same_structure(x, x._type_spec, expand_composites=True)
/external/tensorflow/tensorflow/python/tpu/
Dtpu_embedding_v2.py534 nest.assert_same_structure(self._feature_config, gradients)
1251 nest.assert_same_structure(self._feature_config, features)
1256 nest.assert_same_structure(self._feature_config, weights)
1571 nest.assert_same_structure(inputs, feature_config)
1576 nest.assert_same_structure(inputs, weights)
Dtpu.py1277 nest.assert_same_structure(inputs[0], inputs[i])
1339 nest.assert_same_structure(inputs[0], maximum_shapes, check_types=False)
1358 nest.assert_same_structure(flat_inputs[0], flat_maximum_shapes,
/external/tensorflow/tensorflow/python/autograph/operators/
Dcontrol_flow.py294 nest.assert_same_structure(init, entry, expand_composites=True)
295 nest.assert_same_structure(entry, exit_, expand_composites=True)
301 nest.assert_same_structure(init, invariant, expand_composites=False)
360 nest.assert_same_structure(body_var, orelse_var, expand_composites=True)
Dcontrol_flow_deprecated_py2.py207 nest.assert_same_structure(entry, exit_, expand_composites=True)
213 nest.assert_same_structure(init, invariant, expand_composites=False)
268 nest.assert_same_structure(
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dtest_base.py143 nest.assert_same_structure(result_values[i], expected_values[i])
/external/tensorflow/tensorflow/python/keras/layers/legacy_rnn/
Drnn_cell_wrapper_impl.py376 nest.assert_same_structure(inputs, outputs)

12