param_scope() not working in tests
Created by: sfraczek
Hi,
The param_scope()
method doesn't work inside tests. Is it intentional?
Here is the param_scope() method:
https://github.com/PaddlePaddle/Paddle/blob/af15f6f0380a3975239d7d4a6c7c682f4058d309/paddle/fluid/framework/ir/fuse_pass_base.h#L35
This is troublesome because I can't write a test for my conv_bn_fuse_pass beacuse I use scope
in it. This function works when run from a resnet50 pass test program. What should I do? I have noticed that other passes (like fc_gru
) also use scope and they don't have tests.