PaddlePaddle / X2Paddle

Deep learning model converter for PaddlePaddle. (『飞桨』深度学习模型转换工具)
http://www.paddlepaddle.org/
Apache License 2.0
740 stars 165 forks source link

tf模型转换成pd模型后,想知道这个语法怎么转换 #760

Open AIHHU opened 2 years ago

AIHHU commented 2 years ago

model = tf.saved_model.load('./pretrained_model/dtln_saved_model') infer = model.signatures["serving_default"] out_block= infer(tf.constant(in_block))['conv1d_1'] 不知道这个[conv1d_1]转到paddle以后怎么推理

wjj19950828 commented 2 years ago

@AIHHU 有更具体的错误描述吗,不太理解您说的什么意思,是TF的保存的pb模型转Paddle出现错误了吗?

AIHHU commented 2 years ago

ValueError: Input 1 of node StatefulPartitionedCall was passed float from lstm/Variable:0 incompatible with expected resource.

AIHHU commented 2 years ago

我在x2paddle的时候发生的这个错误