Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BJavid opened this issue Apr 21, 2020 · 3 comments
Open

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

BJavid opened this issue Apr 21, 2020 · 3 comments
Labels
priority: high High priority, should be address immediately question Further information is requested

Comments

@BJavid
Copy link

BJavid commented Apr 21, 2020

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

@gpengzhi gpengzhi added bug Something isn't working priority: high High priority, should be address immediately labels Apr 28, 2020
@gpengzhi
Copy link
Collaborator

Sorry for the late reply. We will take a look at it.

@BJavid
Copy link
Author

BJavid commented May 5, 2020

@gpengzhi
Thank you.
Is there any answer for this problem? I can't solve it.

@ZhitingHu ZhitingHu added question Further information is requested and removed bug Something isn't working labels Jun 9, 2020
@ZhitingHu
Copy link
Member

pls see my response in #276 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high High priority, should be address immediately question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants