Skip to content

CRFLoss没法转pb #1

@binzhouchn

Description

@binzhouchn

你好,

我用fit好的模型转tf serving需要的pb文件,会报错,问题应该是CRFLoss命名规范问题。可否帮忙看下

错误提示:
/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/util/serialization.py in get_json_type(obj)
52 # misc functions (e.g. loss function)
53 if callable(obj):
---> 54 return obj.name
55
56 # if obj is a python 'type'

AttributeError: 'CRFLoss' object has no attribute 'name'

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