Skip to content

Avoiding unnecessary casting #17

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

VCasecnikovs
Copy link

No description provided.

@VCasecnikovs
Copy link
Author

Q - value is overwritten

Copy link
Owner

@toshikwa toshikwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you compared the performance?

@VCasecnikovs
Copy link
Author

Good morning,
I haven't checked the performance changes yet, I just started to train sacd on PacMan yesterday and for now, I can not get the same results...
After successful training, I'll try to do some benchmarks.

@VCasecnikovs
Copy link
Author

Typo fix just changes cateorical to categorical : )

@VCasecnikovs
Copy link
Author

Now it is possible to set render in your config.

@toshikwa
Copy link
Owner

I haven't checked the performance changes yet

I'm sorry, but I meant about the speed test.

I have compared the speed performance of "cast into uint8 -> transfer to GPU -> cast into float32"(master branch) with "cast into float32 -> transfer"(yours), but I also included here.
As a result, the former was much faster, so I don't feel like merging this commit.

I haven't had time to check the issues so far, but I really appreciate your contribution ;)
Thanks ;)

@VCasecnikovs
Copy link
Author

Thank You for Your fast answer. The problem is that with such casting it could ruin floating points for some non-image data. So, maybe it could be better to add a flag, so the user would be able to choose from these two options.

@VCasecnikovs
Copy link
Author

I have tested the performance, it is the same, results are in issue #22.

@toshikwa
Copy link
Owner

toshikwa commented Jan 4, 2021

@VCasecnikovs
I'm sorry but I would not merge it because I concern about the training speed.
This repository only supports Atari env now, however, I am planning to make it compatible with other envs (after I finish my thesis).
At that time, I will be willing to merge this functionality as an optional argument.

I really appreciate your supports.
Thanks ;)

@VCasecnikovs
Copy link
Author

@ku2482,
thank you for the answer.
The speed is also the same, I have added PrintScreen with relative to #22.
Best regards,
Vadims.

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