Skip to content

whether the return value of crf in the call function needs to be the same In the stage of train and valid ? #2586

@colynhn

Description

@colynhn

hello, @howl-anderson :

May i ask you some questions? Details are as follows:

file path: https://github.com/howl-anderson/addons/blob/feature/crf_layer_on_stable_release/tensorflow_addons/layers/crf.py:
code: def call(self, inputs, mask=None, text=None, **kwargs):

the call func return value is always decoded_sequence in the train and valid phase, but in the keras-contrib (keras-contrib/keras_contrib/layers/crf.py): the call func is defined as "out = K.in_train_phase(train_output, test_output)", it is diffient in the train and valid phase, so i have doubts about whether the return value of crf in the call function needs to be the same In the stage of train and valid?

Looking forward to everyone's answers, thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions