Home
last modified time | relevance | path

Searched refs:partitioned_dim_sizes (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_tensor_shape.py85 def __init__(self, partitioned_dim_sizes, inner_dim_sizes): argument
100 assert isinstance(partitioned_dim_sizes, (list, tuple))
102 (partitioned_dim_sizes, inner_dim_sizes)):
103 partitioned_dim_sizes = tuple(
106 for size in partitioned_dim_sizes)
111 if partitioned_dim_sizes:
112 for axis, dimension_size in enumerate(partitioned_dim_sizes):
117 if partitioned_dim_sizes[0].shape.ndims == 1:
119 if partitioned_dim_sizes[-1].shape.ndims == 0:
123 self._partitioned_dim_sizes = partitioned_dim_sizes
[all …]
Dragged_batch_gather_with_default_op.py158 pad_dims = params_shape.partitioned_dim_sizes[:-1] + (
159 array_ops.ones_like(params_shape.partitioned_dim_sizes[-1]),)
164 params_shape.partitioned_dim_sizes,
177 batch_dimensions = params_shape.partitioned_dim_sizes[
179 gather_dimension = params_shape.partitioned_dim_sizes[
Dragged_tensor_shape_test.py43 for splits in x.partitioned_dim_sizes
47 for splits in y.partitioned_dim_sizes