Skip to content

Getting "UnboundLocalError: local variable 'cell_fn' referenced before assignment" #24

@IronCraftMan

Description

@IronCraftMan

Running it using anaconda on Windows. The full error is:

Traceback (most recent call last):
  File "train.py", line 379, in <module>
    main()
  File "train.py", line 249, in main
    train_model = CharRNN(is_training=True, use_batch=True, **params)
  File "H:\Development\ML\tensorflow-char-rnn\char_rnn_model.py", line 68, in __init__
    cell = cell_fn(
UnboundLocalError: local variable 'cell_fn' referenced before assignment

I'm not a python programmer, so I have no clue as to how to solve this error.

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