Home
last modified time | relevance | path

Searched refs:as_shape (Results 1 – 25 of 42) sorted by relevance

12

/external/tensorflow/tensorflow/python/tpu/
Dtpu_sharding.py179 shape = tensor_shape.as_shape(shape)
190 return tensor_shape.as_shape(dims)
223 shape = tensor_shape.as_shape(shape)
259 shape = tensor_shape.as_shape(shape)
/external/tensorflow/tensorflow/python/framework/
Dpython_api_parameter_converter_test.py132 ("ShapeFromShape", "shape", tensor_shape.as_shape([1, 2]),
133 tensor_shape.as_shape([1, 2])),
134 ("ShapeFromInt", "shape", 1, tensor_shape.as_shape(1)),
135 ("ShapeFromNone", "shape", None, tensor_shape.as_shape(None)),
136 ("ShapeFromList", "shape", [1, 2, 3], tensor_shape.as_shape([1, 2, 3])),
144 tensor_shape.as_shape(1),
145 tensor_shape.as_shape(None),
146 tensor_shape.as_shape([2, 3])
184 self.assertEqual(params, [[1, 2, 3], tensor_shape.as_shape([1, 2]), 10.0])
Dtensor_shape.py965 other = as_shape(other)
1006 other = as_shape(other)
1022 other = as_shape(other)
1136 other = as_shape(other)
1180 other = as_shape(other)
1273 other = as_shape(other)
1281 other = as_shape(other)
1297 def as_shape(shape): function
Dindexed_slices.py230 self._shape = tensor_shape.as_shape(shape)
237 self._indices_shape = tensor_shape.as_shape(indices_shape).with_rank(1)
Dop_def_util.cc155 static PyObject* as_shape = GetRegisteredPyObject("tf.as_shape"); in operator ()() local
160 result.reset(PyObject_CallFunctionObjArgs(as_shape, value, nullptr)); in operator ()()
Dtensor_shape_test.py412 tensor_shape.as_shape(proto))
418 tensor_shape.as_shape(proto))
420 partial_proto_shape = tensor_shape.as_shape(
Dconstant_op.py304 shape = tensor_shape.as_shape(shape)
Dtype_spec_test.py60 self.x_shape = tensor_shape.as_shape(x_shape)
62 self.y_shape = tensor_shape.as_shape(y_shape)
Dsparse_tensor.py311 self._shape = tensor_shape.as_shape(shape)
Dop_def_library.py221 return tensor_shape.as_shape(v).as_proto()
827 _pywrap_utils.RegisterPyObject("tf.as_shape", tensor_shape.as_shape)
/external/tensorflow/tensorflow/python/data/util/
Dconvert.py53 shape_like = tensor_shape.as_shape(shape_like)
/external/tensorflow/tensorflow/python/ops/structured/
Dstructured_tensor_slice_test.py135 a_shape = tensor_shape.as_shape(a.shape)
136 b_shape = tensor_shape.as_shape(b.shape)
Dstructured_tensor.py191 shape = tensor_shape.as_shape(shape)
1047 shape = tensor_shape.as_shape(shape)
/external/tensorflow/tensorflow/python/keras/engine/
Dinput_layer_test.py68 def as_shape(shape): function
83 self.x_shape = as_shape(x_shape)
85 self.y_shape = as_shape(y_shape)
/external/tensorflow/tensorflow/python/distribute/
Dparameter_server_strategy_v2.py592 shape = tensor_shape.as_shape(shape)
659 shape=tensor_shape.as_shape(partition_shape),
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2_test.py46 self.assertEqual(tensor_shape.as_shape(shape), t1.shape)
47 self.assertEqual(tensor_shape.as_shape(shape), t2.shape)
55 self.assertEqual(tensor_shape.as_shape(shape), t1.shape)
56 self.assertEqual(tensor_shape.as_shape(shape), t2.shape)
Dparsing_config.py420 self.dense_shapes = [tensor_shape.as_shape(s) for s in dense_shapes]
568 feature_tensor_shape = tensor_shape.as_shape(feature.shape)
578 self.dense_shapes.append(tensor_shape.as_shape(feature.shape))
590 self.dense_shapes.append(tensor_shape.as_shape(feature.shape))
Dtensor_array_ops.py140 self._element_shape = [tensor_shape.as_shape(element_shape)]
460 self._element_shape = [tensor_shape.as_shape(element_shape)]
707 self._element_shape = tensor_shape.as_shape(element_shape)
1334 self._element_shape = tensor_shape.as_shape(element_shape)
Dnn_ops.py1159 tensor_shape.as_shape(input.shape),
1160 tensor_shape.as_shape(filters.shape),
1215 filter_shape = tensor_shape.as_shape(filter_shape)
1216 input_shape = tensor_shape.as_shape(input_shape)
4990 noise_shape_ = tensor_shape.as_shape(noise_shape)
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_one_hot_op_test.py173 indices_shape = tensor_shape.as_shape(indices_shape)
Dragged_tensor.py1458 shape = tensor_shape.as_shape(shape)
1487 flat_shape = tensor_shape.as_shape([None] + shape[self.ragged_rank + 1:])
1760 shape = tensor_shape.as_shape(shape)
2299 self._shape = tensor_shape.as_shape(shape)
2858 shape = tensor_shape.as_shape(shape)
/external/tensorflow/tensorflow/python/data/ops/
Diterator_ops.py199 tensor_shape.as_shape,
273 tensor_shape.as_shape,
/external/tensorflow/tensorflow/python/eager/
Dexecute.py211 shape = tensor_shape.as_shape(v)
Dbackprop.py95 return tensor_shape.as_shape(value).as_proto()
97 return [tensor_shape.as_shape(v).as_proto() for v in value]
/external/tensorflow/tensorflow/python/ops/distributions/
Ddistribution.py671 return tensor_shape.as_shape(self._batch_shape())
705 return tensor_shape.as_shape(self._event_shape())

12