Home
last modified time | relevance | path

Searched refs:is_compatible_with (Results 1 – 25 of 97) sorted by relevance

1234

/external/tensorflow/tensorflow/python/framework/
Dtensor_spec_test.py60 self.assertTrue(desc_unknown.is_compatible_with(unknown))
61 self.assertTrue(desc_unknown.is_compatible_with(partial))
62 self.assertTrue(desc_unknown.is_compatible_with(full))
63 self.assertTrue(desc_unknown.is_compatible_with(rank3))
66 self.assertTrue(desc_partial.is_compatible_with(unknown))
67 self.assertTrue(desc_partial.is_compatible_with(partial))
68 self.assertTrue(desc_partial.is_compatible_with(full))
69 self.assertFalse(desc_partial.is_compatible_with(rank3))
72 self.assertTrue(desc_full.is_compatible_with(unknown))
73 self.assertFalse(desc_full.is_compatible_with(partial))
[all …]
Dtensor_spec.py88 def is_compatible_with(self, spec_or_tensor): member in TensorSpec
100 return (self._dtype.is_compatible_with(spec_or_tensor.dtype) and
101 self._shape.is_compatible_with(spec_or_tensor.shape))
Dtensor_shape.py236 def is_compatible_with(self, other): member in Dimension
262 if not self.is_compatible_with(other):
1012 def is_compatible_with(self, other): member in TensorShape
1055 if not x_dim.is_compatible_with(y_dim):
1071 if not self.is_compatible_with(other):
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dtensor_signature.py70 def is_compatible_with(self, other): member in TensorSignature
84 if not x_dim.is_compatible_with(y_dim):
89 return self.is_sparse and self.dtype.is_compatible_with(other.dtype)
90 return (self.dtype.is_compatible_with(other.dtype) and
133 if not TensorSignature(tensors[key]).is_compatible_with(signatures[key]):
140 return TensorSignature(tensors).is_compatible_with(signatures)
201 if not signatures.dtype.is_compatible_with(features.dtype):
206 if not signatures[name].dtype.is_compatible_with(features[name].dtype):
Dtensor_signature_test.py93 self.assertTrue(placeholder_out.get_shape().is_compatible_with(
103 self.assertTrue(placeholders_out['a'].get_shape().is_compatible_with(
127 self.assertTrue(new_signatures.is_compatible_with(signatures))
142 self.assertTrue(new_signatures['a'].is_compatible_with(signatures['a']))
143 self.assertTrue(new_signatures['b'].is_compatible_with(signatures['b']))
/external/tensorflow/tensorflow/python/data/util/
Dstructure.py74 def is_compatible_with(self, other): member in Structure
324 def is_compatible_with(self, other): member in NestedStructure
335 substructure.is_compatible_with(other_substructure)
350 if not structure.is_compatible_with(Structure.from_value(sub_value)):
366 if not structure.is_compatible_with(Structure.from_value(sub_value)):
442 def is_compatible_with(self, other): member in TensorStructure
444 self._dtype.is_compatible_with(other._dtype) and
445 self._shape.is_compatible_with(other._shape))
448 if not self.is_compatible_with(Structure.from_value(value)):
461 if not self.is_compatible_with(Structure.from_value(flat_value[0])):
[all …]
Dstructure_test.py71 self.assertTrue(actual.is_compatible_with(expected))
73 tensor_shape.as_shape(expected).is_compatible_with(actual))
129 s.is_compatible_with(
133 s.is_compatible_with(
360 self.assertTrue(expected_structure.is_compatible_with(actual_structure))
361 self.assertTrue(actual_structure.is_compatible_with(expected_structure))
418 batched_structure.is_compatible_with(expected_batched_structure))
420 expected_batched_structure.is_compatible_with(batched_structure))
445 unbatched_structure.is_compatible_with(expected_unbatched_structure))
447 expected_unbatched_structure.is_compatible_with(unbatched_structure))
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dprefetch_to_device_test.py45 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
47 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
71 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
73 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
95 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
97 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
124 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
126 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
171 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
173 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
Dcopy_to_device_test.py49 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
51 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
74 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
76 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
98 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
100 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
123 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
125 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
148 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
150 self.assertTrue(dataset_ops.get_structure(host_dataset).is_compatible_with(
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptional_test.py82 self.assertTrue(opt.value_structure.is_compatible_with(value_structure))
84 opt.value_structure.is_compatible_with(
87 opt.value_structure.is_compatible_with(
277 expected_value_structure.is_compatible_with(opt.value_structure))
279 opt.value_structure.is_compatible_with(expected_value_structure))
283 self.assertTrue(opt_structure.is_compatible_with(opt_structure))
284 self.assertTrue(opt_structure._value_structure.is_compatible_with(
293 self.assertFalse(opt_structure.is_compatible_with(non_optional_structure))
340 next_elem.value_structure.is_compatible_with(
356 next_elem.value_structure.is_compatible_with(
/external/tensorflow/tensorflow/python/data/ops/
Doptional_ops.py164 def is_compatible_with(self, other): member in OptionalStructure
167 self._value_structure.is_compatible_with(other._value_structure))
178 not flat_value[0].shape.is_compatible_with(tensor_shape.scalar())):
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_from_tensor_op_test.py321 dt.shape.is_compatible_with(rt.shape),
335 dt.shape.is_compatible_with(rt.shape),
446 self.assertTrue(dt.shape.is_compatible_with(rt.shape))
/external/tensorflow/tensorflow/contrib/framework/python/framework/
Dtensor_util.py119 predictions_shape.dims[-1].is_compatible_with(1)):
125 labels_shape.dims[-1].is_compatible_with(1)):
291 not actual_shape.is_compatible_with(expected_shape)):
292 if (len(expected_shape) < 1) and actual_shape.is_compatible_with([1]):
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/
Dhead.py218 if not times_feature.get_shape().is_compatible_with([None, None]):
309 if not times_feature.get_shape().is_compatible_with([None, None]):
387 if not feature_shape[:2].is_compatible_with(
410 if not times_feature.get_shape().is_compatible_with([None, None]):
416 if not values_feature.get_shape().is_compatible_with(
/external/tensorflow/tensorflow/python/ops/
Dconfusion_matrix.py79 predictions_shape.dims[-1].is_compatible_with(1)):
85 labels_shape.dims[-1].is_compatible_with(1)):
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dinterleave_ops.py180 if not weights.shape.is_compatible_with([num_datasets]):
270 if not dataset_ops.get_structure(choice_dataset).is_compatible_with(
Dgrouping.py273 if not self._key_func.output_structure.is_compatible_with(
399 if not self._window_size_func.output_structure.is_compatible_with(
411 if not self._key_func.output_structure.is_compatible_with(
/external/tensorflow/tensorflow/python/kernel_tests/
Dpadding_fifo_queue_test.py427 tensor_shape.TensorShape(float_val.shape).is_compatible_with(
430 tensor_shape.TensorShape(int_val.shape).is_compatible_with(dequeued_t[
441 tensor_shape.TensorShape(float_val.shape).is_compatible_with(
444 tensor_shape.TensorShape(int_val.shape).is_compatible_with(
472 tensor_shape.TensorShape(string_val.shape).is_compatible_with(
475 tensor_shape.TensorShape(int_val.shape).is_compatible_with(dequeued_t[
482 tensor_shape.TensorShape(string_val.shape).is_compatible_with(
485 tensor_shape.TensorShape(int_val.shape).is_compatible_with(
513 tensor_shape.TensorShape(string_val.shape).is_compatible_with(
516 tensor_shape.TensorShape(int_val.shape).is_compatible_with(dequeued_t[
[all …]
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.data.experimental.-structure.pbtxt13 name: "is_compatible_with"
Dtensorflow.data.experimental.-optional-structure.pbtxt15 name: "is_compatible_with"
Dtensorflow.data.experimental.-dataset-structure.pbtxt15 name: "is_compatible_with"
Dtensorflow.data.experimental.-nested-structure.pbtxt15 name: "is_compatible_with"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.data.experimental.-structure.pbtxt13 name: "is_compatible_with"
Dtensorflow.data.experimental.-nested-structure.pbtxt15 name: "is_compatible_with"
Dtensorflow.data.experimental.-dataset-structure.pbtxt15 name: "is_compatible_with"

1234