Skip to content

TypeError: unsupported operand type(s) for +=: 'float' and 'list' #277

@BJavid

Description

@BJavid

hello
I got the typeerror while running text_style_transfer example.
This is terminal error

File "main.py", line 179, in main
eval_epoch(sess, gamma, lambda_g
, epoch, 'val')
File "main.py", line 133, in _eval_epoch
avg_meters.add(vals, weight=batch_size)
File "C:\Users\Bahar\Anaconda3\envs\envm\lib\site-packages\texar\tf\utils\average_recorder.py", line 222, in add
self._recorders[name].add(val, weight=weight)
File "C:\Users\Bahar\Anaconda3\envs\envm\lib\site-packages\texar\tf\utils\average_recorder.py", line 65, in add
self._sum += record * w
TypeError: unsupported operand type(s) for +=: 'float' and 'list'

Please help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highHigh priority, should be address immediatelyquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions