NDArrayView: Create an NDArrayView Instance

Description Usage Arguments

Description

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().

Usage

1
NDArrayView(shape, dtype, device = NULL)

Arguments

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


Microsoft/CNTK-R documentation built on May 28, 2019, 1:52 p.m.