January 2018
Intermediate to advanced
474 pages
10h 23m
English
The following table lists some of the tensor generating functions to populate elements of the tensor with sequences:
| Tensor generating function | Description |
lin_space( start, stop, num, name=None) |
Generates a 1-D tensor from a sequence of num numbers within the range [start, stop]. The tensor has the same data type as the start argument. For example, a = tf.lin_space(1,100,10) generates a tensor with values [1,12,23,34,45,56,67,78,89,100]. |
range( limit, delta=1, dtype=None, name='range')range( start, limit, delta=1, dtype=None, name='range') |
Generates a 1-D tensor from a sequence of numbers within the range [start, limit], with the increments of delta. If the dtype argument is not specified, ... |
Read now
Unlock full access