GAN 的 dc_gan例子运行出错
Created by: ManWingloeng
paddle版本是0.15 不使用GPU运行出错
todd@todd-PC:~/gan/c_gan$ python dc_gan.py --output="./output" --use_gpu=False
----------- Configuration Arguments -----------
batch_size: 128
epoch: 20
output: ./output
use_gpu: 0
------------------------------------------------
Traceback (most recent call last):
File "dc_gan.py", line 168, in <module>
train(args)
File "dc_gan.py", line 116, in train
fetch_list={g_img})[0]
File "/home/todd/.local/lib/python2.7/site-packages/paddle/fluid/executor.py", line 470, in run
self.executor.run(program.desc, scope, 0, True, True)
paddle.fluid.core.EnforceNotMet: Enforce failed. Expected output_shape[unk_dim_idx] * capacity == -in_size, but received output_shape[unk_dim_idx] * capacity:-79968 != -in_size:-80000.
Invalid shape is given. at [/paddle/paddle/fluid/operators/reshape_op.cc:98]
PaddlePaddle Call Stacks:
0 0x7f6f9d91ad86p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 486
1 0x7f6f9dffdb76p paddle::operators::ReshapeOp::ValidateShape(std::vector<int, std::allocator<int> >, paddle::framework::DDim const&) + 2854
2 0x7f6f9dffe24fp paddle::operators::ReshapeOp::InferShape(paddle::framework::InferShapeContext*) const + 703
3 0x7f6f9e2eda69p paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&) const + 73
4 0x7f6f9e2ea00fp paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&) + 255
5 0x7f6f9d9d89d9p paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool) + 393
6 0x7f6f9d9d95d0p paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool) + 128
7 0x7f6f9d90265dp
8 0x7f6f9d94d034p pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 2596
9 0x563ca4ee37cbp PyEval_EvalFrameEx + 34443
10 0x563ca4ed8c7ap PyEval_EvalCodeEx + 1386
11 0x563ca4ee07aep PyEval_EvalFrameEx + 22126
12 0x563ca4ed8c7ap PyEval_EvalCodeEx + 1386
13 0x563ca4ee0db4p PyEval_EvalFrameEx + 23668
14 0x563ca4ed8c7ap PyEval_EvalCodeEx + 1386
15 0x563ca4ed8709p PyEval_EvalCode + 25
16 0x563ca4f0971fp
17 0x563ca4f04472p PyRun_FileExFlags + 130
18 0x563ca4f038edp PyRun_SimpleFileExFlags + 397
19 0x563ca4eb2a2bp Py_Main + 1675
20 0x7f6fc4b62a87p __libc_start_main + 231
21 0x563ca4eb22aap _start + 42
@qingqing01