【发布时间】:2017-03-13 10:46:56
【问题描述】:
我在以下代码中遇到错误:
x = cntk.input_variable(shape=c(8,3,1))
y = cntk.sequence.slice(x,1,0)
x0 = np.reshape(np.arange(48.0,dtype=np.float32),(2,8,1,3))
y.eval({x:x0})
Error : Sequences must be a least one frame long
但是当我运行它时它运行良好:
x = cntk.input_variable(shape=c(3,2)) #change
y = cntk.sequence.slice(x,1,0)
x0 = np.reshape(np.arange(24.0,dtype=np.float32),(1,8,1,3)) #change
y.eval({x:x0})
我无法理解slice方法中的一些东西:
- 它将在哪个数组级别进行切片。
- 附件。对于文档,第二个参数是
begin_index,旁边是end_index。being_index怎么会大于end_index。
【问题讨论】: