Skip to content

NotFoundError when running train_qgen_reinforce.py #26

@n-askarian

Description

@n-askarian

Hi,
In train_qgen_reinforce.py code, when I try to restore qgen in line 163 I am given the following error:
NotFoundError (see above for traceback): Key qgen/rl_baseline/baseline_hidden/W not found in checkpoint
[[Node: save/RestoreV2_4 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_4/tensor_names, save/RestoreV2_4/shape_and_slices)]]

The reason is that qgen_saver which is defined in line 100 expects to restore the variables of QGenNetworkLSTM with policy_gradient=True while the model I want to restore is trained without policy_gradient so it does not have rl_baseline variables.

Could you please help me how to resolve this bug?

Thanks,

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