Skip to content

TypeError: unsupported operand type(s) for +: 'Config' and 'str' #13

@sakuras-ya

Description

@sakuras-ya

Hello, I used your code when I was training my network, and I met this error:
Traceback (most recent call last): File "run.py", line 156, in <module> energyusage.evaluate(train, config, model, train_iter, dev_iter, test_iter, args, pdf=True) File "/home/user17302330/.conda/envs/cnn-text/lib/python3.6/site-packages/energyusage/evaluate.py", line 331, in evaluate func_info, comparison_values, default_emissions, default_location) File "/home/user17302330/.conda/envs/cnn-text/lib/python3.6/site-packages/energyusage/report.py", line 318, in generate info_text += arg + "," TypeError: unsupported operand type(s) for +: 'Config' and 'str'

'Config' is a class I created, and I don't know how to solve the problem.

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