leonleeldc

Results issues of leonleeldc

## 🐛 Bug Hi, group, I am new to fairseq. I encounter a problem in deploying it. In my project, I have defined a new optimizer. I know the file...

bug

为使您的问题得到快速解决,在建立Issue前,请您先通过如下方式搜索是否有相似问题:【搜索issue关键字】【使用labels筛选】【官方文档】 建立issue时,为快速解决问题,请您根据使用情况给出如下信息: - 标题:简洁、精准描述您的问题,例如“ssd 模型前置lstm报错  ” - 版本、环境信息:    1)PaddlePaddle版本:请提供PaddlePaddle版本号,例如1.1或CommitID    2)CPU:请提供CPU型号,MKL/OpenBlas/MKLDNN/等数学库的使用情况    3)GPU:请提供GPU型号,CUDA和CUDNN版本号    4)系统环境:请说明系统类型、版本(例如Mac OS 10.14),Python版本 - 模型信息    1)模型名称 2)使用数据集名称 3)使用算法名称 4)模型链接 - 复现信息:如为报错,请给出复现环境、复现步骤 - 问题描述:请详细描述您的问题,同步贴出报错信息、日志/代码关键片段 Thank you for contributing to PaddlePaddle....

Is there a similar approach to tensorflow for make_template to share variables?

原来paddle里面有个distributions的packages, 现在好像没有了,这个链接里的也没有,https://github.com/PaddlePaddle/Paddle/pull/18023. 那我们要用到statictical and probability的东西在哪里呢?tensorflow里面是有个类似的package也叫tf.distributions. 我们可以调用tf.distributions.Categorical, tf.distributions.kl_divergence and tf.distributions.Normal之类的。

在tensorflow中,我们可以使用下面这个方法取得scope为generator下面的所有变量。 g_vars = get_collection(fluid.layers.GraphKeys.TRAINABLE_VARIABLES, scope='generator')。 我发现我们可以用 g_vars = fluid.name_scope('generator') 得到一个contextlib._GeneratorContextManager,但是好像我们并不能利用它做进一步有用的操作。 多谢

question

我在调用 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吗?怎么转?

{AttributeError}'paddle.fluid.core_avx.Variable' object has no attribute 'desc' paddle.fluid.core_avx.Variable是一种什么Variable,里面什么都看不到,也不能用,怎样能转成fluid.layers.Variable

Hi, 我有一个跟这个issue相似的问题: fluid.layers.data里面指定的shape与实际输出不符合预期 #15519 我定义如下placeholder. self.anneal_ph = fluid.layers.data('anneal_ph', shape=[1], append_batch_size=False, dtype='float32', lod_level=0) 在下面这样使用, neg_ELBO = neg_ll + self.anneal_ph * KL + 2 * reg_vars build_graph没有问题,但是在后面输入数据后,就说维度不一致了,实际上,我输入就是一个数,我把append_batch_size设成了false,但是后面计算时,它还是说是两维。 这种怎么办? 多谢!

下面是我做gradients and clip_by_norm的代码,前面运行都正常,在apply_gradients时报错: grad_clip = 5.0 # keep the same with the previous setting # generator pre-training pretrain_opt = fluid.optimizer.AdamOptimizer(gpre_lr, beta1=0.9, beta2=0.999) g_out = fluid.gradients(g_pretrain_loss, g_vars) print(g_out) #g_out = fluid.layers.stack([g_out],...

status/close

I noticed that the issue Input(Out@GRAD) shouldn't be null错误怎么排查 #16528 is similar. But it seems somewhat different as well. 具体说来,我这边定义了一个generator: def generator(parent, program, x_real, temperature, temperature_pretrain, w_dict, vocab_size, batch_size, seq_len,...