Gaffey

Results comments of Gaffey

请问可以用IfElse分支来实现这样的功能吗 @heavengate ``` limit = fluid.layers.fill_constant_batch_size_like( input=cond1, shape=[1], value=0, dtype=cond1.dtype) cond = fluid.layers.less_than(x=cond1, y=limit) ie = fluid.layers.IfElse(cond) with ie.true_block(): ie_input = ie.input(input) zero_output = paddle.fluid.layers.zeros(shape=ie_input.shape, dtype=input.dtype) ie.output(zero_output) with ie.false_block(): ie_input...

> zero_output = paddle.fluid.layers.zeros(shape=ie_input.shape, dtype=input.dtype) > shape应该跟false分支输出一致 将两个layer都替换成同样的conv,仍然报该错误

我发现了问题,是conv1实际上的channel数应该是3L,但为什么打印出来是224L呢?

补充错误 修改两个switch case的代码,改成一致的layer,后文输入其他layer的时候,输入纬度被识别为1 ``` with fluid.layers.control_flow.Switch() as switch: with switch.case(cond1 < zero_var): conv = self.conv_bn_layer(input=input, num_filters=filter1, filter_size=3, stride=1, act='relu') with switch.default(): conv = self.conv_bn_layer(input=input, num_filters=filter1, filter_size=3, stride=1, act='relu') conv2 =...

> @Gaffey 默认conv使用cuDNN的conv,但cuDNN v7.1的group conv的速度较慢,Paddle自身有优化过depthwise conv,需要设置use_cudnn=False。 @qingqing01 在group conv的layer上加了use_cudnn=False,看上去比之前更慢了,请问还需要调整其他配置吗

> @Gaffey 您是group = 输入channel = 输出channel吗? 我们MobileNet里都采用的是use_cudnn=False配置的。 能个完整的可测试的代码吗? 我在hi上联系您

> 不要调用 forward ,调用__call__函数 @phlrain model.forward(img) 改为 model(img) 后,报错没有发生变化

> 你这个是在梯度计算完成之后,正则化出现了bug,我们尽快解决下 非常感谢!另外之前debug的时候我尝试去掉reg,似乎仍然会出错,错误路径不同 ``` Traceback (most recent call last): File "simple_test.py", line 68, in main() File "simple_test.py", line 65, in main train(train_reader, test_reader, cifar) File "simple_test.py", line 51, in train...

> 你这个是在梯度计算完成之后,正则化出现了bug,我们尽快解决下 您好,请问这个问题目前有初步结论了吗

> * 如果选择了两个层的话会在对应的轮次更新参数,参数是在init里面确定好的,如果某一轮没使用那个参数,他就不会在当轮被更新 > * 动态图中没有静态图中block的概念,您是指Layer么 这两个问题我最后搞明白了,现在发现主要就是没使用的参数也会因为L2Decay被更新,感觉不是很合理