Operator "deformable_conv" has not been registered.
Created by: ResearchingDexter
1)PaddlePaddle版本:1.5.1 2)CPU/GPU:cpu 3)系统环境:Mac OS 10.13.6 运行下面代码报错是可变性卷积没有实现的意思吗
import numpy as np
m=fluid.Program()
s=fluid.Program()
with fluid.program_guard(m,s):
data = fluid.layers.data(name='data', shape=[3, 32, 32], dtype='float32')
offset = fluid.layers.data(name='offset', shape=[18, 32, 32], dtype='float32')
mask = fluid.layers.data(name='mask', shape=[9, 32, 32], dtype='float32')
out = fluid.layers.deformable_conv(input=data, offset=offset, mask=mask, num_filters=2, filter_size=3,
padding=1)
d=np.random.uniform(0,1,[1,3,32,32]).astype(np.float32)
o=np.ones([1,18,32,32],np.float32)
m=np.ones([1,9,32,32],np.float32)
exe=fluid.Executor(fluid.CPUPlace())
exe.run(s)
out=exe.run(m,feed={'data':d,'offset':o,'mask':m},fetch_list=[out.name])
print(out)
File "/opt/Anaconda/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/layers/nn.py", line 12192, in deformable_conv
'im2col_step': im2col_step,
File "/opt/Anaconda/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/layer_helper.py", line 43, in append_op
return self.main_program.current_block().append_op(*args, **kwargs)
File "/opt/Anaconda/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/framework.py", line 1771, in append_op
attrs=kwargs.get("attrs", None))
File "/opt/Anaconda/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/framework.py", line 1084, in __init__
proto = OpProtoHolder.instance().get_op_proto(type)
File "/opt/Anaconda/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/framework.py", line 972, in get_op_proto
raise ValueError("Operator \"%s\" has not been registered." % type)
ValueError: Operator "deformable_conv" has not been registered.