lgone2000
lgone2000
目前paddle加上了模型定义的call stack信息,可以帮助定位一部分。 但是有关shape错误的部分,还是和让人看晕。能否把所有这些关于shape的报错,加上详细的信息? 比如 op的名称,输入的具体shape=[x,x,x,x], 以及为啥 shape不匹配。 Enforce failed. Expected output_shape[unk_dim_idx] * capacity == -in_size, but received output_shape[unk_dim_idx] * capacity:-256 != -in_size:-320. Invalid shape is given. at [/paddle/paddle/fluid/operators/reshape_op.cc:101]
下面代码的报错信息也让人读不懂, 希望改进 ``` def test_message(): place = fluid.CPUPlace() exe = fluid.Executor(place) main_program = fluid.default_main_program() x = fluid.layers.data(name='x', shape=[10], dtype='float32') feature = fluid.layers.fc(input=x, size=20, act=None) loss = fluid.layers.reduce_mean(feature) optimizer = fluid.optimizer.SGD(learning_rate=0.1)...
1.6 版本 跑前面的 testpredict1 增量了下面有关 shape的详细信息,因此testpredict1 解决了 ShapeError: The 'shape' in ReshapeOp is invalid. The input tensor X'size must be divisible by known capacity of 'shape'. But received X's shape...
最新版本1.6 跑test_message , 发现增加下面调试信息,因此test_message 问题也解决了 Maybe the Input variable LearningRate has not been initialized. You may need to confirm if you put exe.run(startup_program) after optimizer.minimize function. at [/paddle/paddle/fluid/operators/optimizers/sgd_op.cc:39] [operator <...
训练时没指定名字,应该是框架自动生成的名字,后续使用模型时 想用指定的名字
比如我想finetune一个resnet50模型,想把不同block参数的learningrate区别设置,有办法做到吗?原来想看是否能把参数的名字重新命名,然后按照过滤出来。
另外不同层的模型参数共享是否是通过指定相同的参数名实现的呢? 如何利用paddle的命名来操作变量?
这个之前应该王龙修正过 https://github.com/PaddlePaddle/Paddle/commit/3e177b9d917d657c52244d0adf7e187f5f7731cb#diff-2f61feb27730d0f42a351131c7077ec2
it works
it works