Skip to content

fix(cpu_accelerator): 🐛 Convert LOCAL_SIZE to integer - #3971

Merged
jeffra merged 2 commits into
deepspeedai:masterfrom
javsalgar:master
Jul 17, 2023
Merged

jeffra merged 2 commits into
deepspeedai:masterfrom
javsalgar:master

Conversation

@javsalgar

Copy link
Copy Markdown
Contributor

Currently, when using the CPU accelerator with the LOCAL_SIZE env var returns this error

'str' object cannot be interpreted as an integer

This is because in the device_count method we are returning a string instead of an integer. This PR fixes the issue #3970

Currently, when using the CPU accelerator with the LOCAL_SIZE env var
returns this error

```
'str' object cannot be interpreted as an integer
```

This is because in the `device_count` method we are returning a string
instead of an integer. This PR fixes the issue

Signed-off-by: Javier Salmeron Garcia <[email protected]>
@jeffra
jeffra merged commit f5c834a into deepspeedai:master Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants