Skip to content

Failed to process: (InvalidArgument) Axis should be less than 1, but received axis is 1 [Hint: Expected axis < max_dim, but received axis:1 >= max_dim:1.] [operator < elementwise_floordiv > error] #2017

@DDAshley126

Description

@DDAshley126

我自己训练了一个ser模型,使用predict_kie_token_ser.py结果好好的,但是转成serving部署后就出现Axis should be less than 1这种情况。

Image

经检查配置没有问题,之前训练的模型也能成功部署。我尝试过重新转推理模型再转serving,所有的配置项都一致。

目前的环境:
paddle-serving-app 0.9.0
paddle-serving-client 0.9.0
paddle-serving-server 0.9.0
paddlenlp 2.5.2
paddleocr 2.6
paddlepaddle 2.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions