[bug] 在调用 matmul(x,y) 时碰到错误 Input(Y) of MatMulOp should not be null
Created by: rudaoshi
x 和 y 的创建方式 x = fluid.layers.data(name=name, shape=shape, dtype=dtype, append_batch_size=False)
y = fluid.layers.create_parameter(shape=value.shape, dtype=dtype, default_initializer=fluid.initializer.NumpyArrayInitializer(value))
但是,x 和 y 不在同一个Python函数中创建。
根据这个错误,看起来是contex 丢失了 input Y 的信息?
在什么情况下会导致这个问题?如何解决?