fluid.gradients return error information
Created by: leonleeldc
我在调用 fluid.gradients(g_pretrain_loss, fluid.global_scope().var("rmc_fc_1_b").get_tensor()) 的时候,得到如下错误信息。 {AttributeError}'paddle.fluid.core_avx.LoDTensor' object has no attribute 'block' 我是需要把这个object转成paddle.fluid.LoDTensor吗?怎么转?