blob: 7b2a81d48e96631709c191b91f60785de39f2e8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
### `tf.contrib.util.make_ndarray(tensor)` {#make_ndarray}
Create a numpy ndarray from a tensor.
Create a numpy ndarray with the same shape and data as the tensor.
##### Args:
* <b>`tensor`</b>: A TensorProto.
##### Returns:
A numpy array with the tensor contents.
##### Raises:
* <b>`TypeError`</b>: if tensor has unsupported type.
|