MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / size

Function size

tensorflow/python/ops/array_ops.py:308–331  ·  view source on GitHub ↗

Returns the size of a tensor. This operation returns an integer representing the number of elements in `input`. For example: ```python t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]) tf.size(t) # 12 ``` Args: input: A `Tensor` or `SparseTensor`. name: A

(input, name=None, out_type=dtypes.int32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

meshgridFunction · 0.70
IsSameAsMethod · 0.50
ElementCountMethod · 0.50
ElementCountMethod · 0.50

Calls 1

size_internalFunction · 0.85

Tested by

no test coverage detected