fengchun1213
fengchun1213
paddle版本1.5.1,使用lstm_unit报错,代码如下: import paddle.fluid as fluid input = fluid.layers.ones(shape=[1, 256], dtype='float32') output = fluid.layers.ones(shape=[1, 256], dtype='float32') prev_hidden = fluid.layers.ones(shape=[1, 256], dtype='float32') prev_cell = fluid.layers.ones(shape=[1, 256], dtype='float32') hidden = fluid.layers.lstm_unit(x_t=input, hidden_t_prev=prev_hidden, cell_t_prev=prev_cell)...
用profiler看了一下,发现cpu时间好长,一般是什么问题呢 
init_h1 = fluid.layers.fill_constant([num_layers*2, batch_size, hidden_size], 'float32', 0.0) init_c1 = fluid.layers.fill_constant([num_layers*2, batch_size, hidden_size], 'float32', 0.0) print("bi-lstm1 input shape", input.shape) output1, last_h1, last_c1 = fluid.layers.lstm(input=input, init_h=init_h1, init_c=init_c1, max_len=max_len, hidden_size=hidden_size, num_layers=num_layers, is_bidirec=True) print("bi-lstm1...
先使用Adadelta训练,使用save_persistables保存模型,现在想换adam继续训练,但是由于adam参数多了,比如moment,那么请问应该怎么加载之前训练的模型呢?