用法:
mxnet.ndarray.batch_take(a=None, indices=None, out=None, name=None, **kwargs)
out:- 此函数的输出。
NDArray 或 NDArray 列表
参数:
返回:
返回类型:
从数据批次中获取元素。
注意:
batch_take
已弃用。请改用pick
。给定一个形状为
(d0, d1)
的输入数组和形状为(i0,)
的索引,结果将是一个形状为(i0,)
的输出数组,其中:output[i] = input[i, indices[i]]
例子:
x = [[ 1., 2.], [ 3., 4.], [ 5., 6.]] // takes elements with specified indices batch_take(x, [0,1,0]) = [ 1. 4. 5.]
相关用法
- Python mxnet.ndarray.batch_dot用法及代码示例
- Python mxnet.ndarray.broadcast_hypot用法及代码示例
- Python mxnet.ndarray.broadcast_axis用法及代码示例
- Python mxnet.ndarray.broadcast_minus用法及代码示例
- Python mxnet.ndarray.broadcast_like用法及代码示例
- Python mxnet.ndarray.broadcast_maximum用法及代码示例
- Python mxnet.ndarray.broadcast_axes用法及代码示例
- Python mxnet.ndarray.broadcast_plus用法及代码示例
- Python mxnet.ndarray.broadcast_mul用法及代码示例
- Python mxnet.ndarray.broadcast_add用法及代码示例
- Python mxnet.ndarray.broadcast_logical_or用法及代码示例
- Python mxnet.ndarray.broadcast_lesser用法及代码示例
- Python mxnet.ndarray.broadcast_mod用法及代码示例
- Python mxnet.ndarray.broadcast_div用法及代码示例
- Python mxnet.ndarray.broadcast_sub用法及代码示例
- Python mxnet.ndarray.broadcast_equal用法及代码示例
- Python mxnet.ndarray.broadcast_not_equal用法及代码示例
- Python mxnet.ndarray.broadcast_lesser_equal用法及代码示例
- Python mxnet.ndarray.broadcast_logical_and用法及代码示例
- Python mxnet.ndarray.broadcast_to用法及代码示例
注:本文由纯净天空筛选整理自apache.org大神的英文原创作品 mxnet.ndarray.batch_take。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。