This is a internal class for wrapping NDArray(s) returned by function
calls. It handles functions that return more than one array, and
tracks the array dependencies.

You can call get() or apply() to get NDArray

2017-11-05 11:55 GMT+08:00 TongKe Xue <tk...@tkxue.org>:
> Hi,
>
> 1. I'm running into issues with NDArrayFuncReturn vs NDArray. In particular:
>
> 1a. Transpose is defined on NDArray, but does not appear to be defined
> on NDArrayFuncReturn:
> https://github.com/apache/incubator-mxnet/blob/master/scala-package/core/src/main/scala/ml/dmlc/mxnet/NDArray.scala#L665
>
> 2. After calling broadcast_minus , I get a NDArrayFuncReturn
>
> 3. There are functions 'head, get, apply' for doing NDArrayFuncReturn
> -> NDArray:
> https://github.com/apache/incubator-mxnet/blob/master/scala-package/core/src/main/scala/ml/dmlc/mxnet/NDArray.scala#L1099-L1104
>
> So:
>   * What is NDArrayFuncReturn ?
>   * If I'm getting NDArrayFuncReturn (a private class) returned, am I
> calling some internal API I should not be using ?
>   * What is correct way o do NDArrayFuncReturn -> NDArray ?
>
> Thanks,
> --TongKe



-- 
Yizhi Liu
DMLC member
Technical Manager
Qihoo 360 Inc, Shanghai, China

Reply via email to