Ashleychen

Results issues of Ashleychen

I wonder which version of Chainer did you use?

I followed the doc/build.md to install xgboost. I install clang-omp by sudo brew install clang-mop first, changed the head files, and ran the command: bash build.sh as it said. When...

program里面定义的data长这样: `image_lod = fluid.layers.data(name = 'image_lod', dtype = 'float32', shape = [1], lod_level = 1) label_lod = fluid.layers.data(name = 'label_lod', dtype = 'int64', shape = [1], lod_level = 1) last_label_lod...

User
framework
status/close

``` def train_program(self): loss = fluid.layers.zeros(shape = [1], dtype = 'float') image_lod = fluid.layers.data(name = 'image_lod', dtype = 'float32', shape = [784], lod_level = 1) print('%s' % image_lod) label_lod =...

Bug

``` def train_program(self): image_lod = fluid.layers.data(name = 'image_lod', dtype = 'float32', shape = [784], lod_level = 1) label_lod = fluid.layers.data(name = 'label_lod', dtype = 'int', shape = [1], lod_level =...

User

我在GPU多卡下的模型预测结果有问题。 我在模型训练的时候每隔n个batch会用测试数据评估一下,假设这个时候模型的预测值为A; 然后在模型训练完成之后我想重新加载模型再次用同样的测试数据评估,然后这个时候模型的预测值为B; 但是我发现 GPU单卡的情况下B==A;GPU多卡的情况下B!=A。 而且很奇怪的是,多卡的情况下,一个batch里面前半部分的预测结果是对的,而后半部分的预测结果是错的。

User
预测

我实现的网络代码如下: ``` class CNP(BasicModel): """ CNP model """ def __init__(self, conf): """ Constructor of cnp. Args: conf: conf.py definding environment, data and model. """ super(CNP, self).__init__(conf) self.name = basename(__file__) def...

模型保存用的是fluid.io.save_inference_model接口,加载预测模型的时候对应用的是fluid.io.load_inference_model接口,这两步都没问题,但是在预测过程中: ``` if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', default='./model') parser.add_argument('--data', default='./data') args = parser.parse_args() conf = TiebaConf() conf.define_feature(conf.session_wise_features, conf.item_wise_features, conf.labels) exe = fluid.Executor(fluid.CPUPlace()) inference_scope = fluid.core.Scope() with fluid.scope_guard(inference_scope):...

在本地inference的时候,发现网络的output一直不变,打印网络参数和网络输出均正常。不知道原因,麻烦帮忙解决。inference的具体写法如下: ``` if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--data', default='./data') parser.add_argument('--model', default='./model') conf = TiebaConf() conf.define_feature(conf.session_wise_features, conf.item_wise_features, conf.labels) args = parser.parse_args() exe = fluid.Executor(fluid.CPUPlace()) inference_scope = fluid.core.Scope() with fluid.scope_guard(inference_scope):...

在用range op的时候发现当start和end之间的间隔很大(我用的是20000263)的时候,返回的数据shape有问题,返回的range的shape为[20000264,],当start和end之间的间隔较小(如200多)的时候则不会出现这个问题。 我看官网的说明是说: 但是我的step并不是浮点数。以下给出了一个demo,可直接运行。 ``` import numpy import paddle.fluid as fluid #data_size=20000263 #data_size=20000259 data_size=259 data = fluid.layers.data(name="data", shape=[data_size, 1], dtype="int64") test = fluid.layers.range(0, data_size, 1, dtype='int64') fluid.layers.Print(input=test, summarize=0) pred =...