Home
last modified time | relevance | path

Searched refs:new_rank (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dlayers.py1628 def _sparse_inner_flatten(inputs, new_rank): argument
1631 if inputs_rank < new_rank:
1634 ' {}. Received rank {}, shape {}'.format(inputs, new_rank, inputs_rank,
1637 outer_dimensions = inputs.dense_shape[:new_rank - 1]
1638 inner_dimensions = inputs.dense_shape[new_rank - 1:]
1645 def _dense_inner_flatten(inputs, new_rank): argument
1648 inputs, new_rank, message='inputs has rank less than new_rank')
1651 array_ops.shape(inputs), [0], [new_rank - 1])
1656 if isinstance(new_rank, six.integer_types):
1660 static_outer_dims = static_shape[:new_rank - 1]
[all …]
Dlayers_test.py1548 for new_rank in [1, 2, 3, 4, 5]:
1550 shape[:new_rank - 1] + [np.prod(shape[new_rank - 1:])])
1553 flattened_t = _layers._inner_flatten(inputs, new_rank)
1567 for new_rank in [1, 2, 3]:
1568 expected_shape = (shape[:new_rank - 1] + [np.prod(shape[new_rank - 1:])])
1574 flattened_t = _layers._inner_flatten(inputs_t, new_rank)
1607 new_rank = 3
1613 _layers._inner_flatten(inputs, new_rank)
1618 new_rank = 3
1626 _layers._inner_flatten(inputs, new_rank)
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_reshape_op_test.py296 new_rank = np.random.randint(2, 7)
297 new_map = np.random.randint(new_rank, size=factors.shape)
298 new_shape = [np.prod(factors[new_map == d]) for d in range(new_rank)]
/external/tensorflow/tensorflow/core/ops/
Darray_ops.cc2697 int32 new_rank = c->Rank(indices) + 1; in __anon7c94107b3c02() local
2700 int32 depth_index = (axis + new_rank) % new_rank; in __anon7c94107b3c02()
/external/python/cpython2/Doc/library/
Dxml.etree.elementtree.rst191 ... new_rank = int(rank.text) + 1
192 ... rank.text = str(new_rank)
/external/python/cpython3/Doc/library/
Dxml.etree.elementtree.rst214 ... new_rank = int(rank.text) + 1
215 ... rank.text = str(new_rank)