Skip to content

如何使用训练完成的model去做predict #2

@xyzheng96

Description

@xyzheng96

我在使用训练完成的model进行预测时,需要使用graph.get_tensor_by_name("X:0")的代码,会报错KeyError: "The name 'label:0' refers to a Tensor which does not exist. The operation, 'X', does not exist in the graph.",所以tensor name是什么?你的框架中是否有可以直接用于输入中文用于预测情感0/1的代码?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions