Table Of Contents
Table Of Contents


mxnet.ndarray.sparse.empty(stype, shape, ctx=None, dtype=None)[source]

Returns a new array of given shape and type, without initializing entries.

  • stype (string) – The storage type of the empty array, such as ‘row_sparse’, ‘csr’, etc

  • shape (int or tuple of int) – The shape of the empty array.

  • ctx (Context, optional) – An optional device context (default is the current default context).

  • dtype (str or numpy.dtype, optional) – An optional value type (default is float32).


A created array.

Return type

CSRNDArray or RowSparseNDArray