Creates an empty dense internal data representation of a Value object. To create an NDArrayView from a NumPy array, use from_dense(). To create an NDArrayView from a sparse array, use from_csr().
1 | NDArrayView(shape, dtype, device = NULL)
|
shape |
list of ints representing tensor shape list shape of the data |
dtype |
data type to be used ("float32", "float64", or "auto") "float32" or "float64" data type |
device |
instance of DeviceDescriptor DeviceDescriptor device this value should be put on |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.