请教一个问题,mxnet 0.10.0运行你的代码提示错误
Closed this issue · 1 comments
flice commented
运行提示:
src/operator/./slice_channel-inl.h:198: Check failed: ishape[real_axis] == static_cast<size_t>(param_.num_outputs) (3000 vs. 30) If squeeze axis is True, the size of the sliced axis must be the same as num_outputs. Input shape=(100,3000), axis=1, num_outputs=30.
我修改了您的源码中第64行 : self.provide_data = [('data', (batch_size, image_width * image_height))] + init_states
为: self.provide_data = [('data', (batch_size, image_height,image_width))] + init_states
其中 img = img.reshape((image_width * image_height)) 也reshape成二维
BATCH_SIZE 也修改成height值
可以运行,但是精度一直为0,迭代了100次都这样。请问我是哪里忽略了或者设置错误了吗?