Skip to content

Conversation

@Wuodan
Copy link
Contributor

@Wuodan Wuodan commented Aug 22, 2024

Warning was:
Expected type 'int', got 'float' instead

Fixes #83

@Wuodan Wuodan force-pushed the upstream/issue/83_terminal_actions_float_not_int branch from 58883c8 to 53c4d2f Compare August 22, 2024 12:23
@Agade09
Copy link
Member

Agade09 commented Aug 26, 2024

Wouldn't it make more sense to replace your hardcoded 2**31-1 by sys.maxsize?

@Wuodan
Copy link
Contributor Author

Wuodan commented Aug 26, 2024

Wouldn't it make more sense to replace your hardcoded 2**31-1 by sys.maxsize?

I tried as described in #83. sys.maxsize leads to

OverflowError: Python int too large to convert to C long

Warning was:
Expected type 'int', got 'float' instead

Fixes Linesight-RL#83
@Wuodan Wuodan force-pushed the upstream/issue/83_terminal_actions_float_not_int branch from 53c4d2f to c0f690f Compare August 30, 2024 13:21
@Agade09
Copy link
Member

Agade09 commented Aug 30, 2024

This error is very confusing...maybe np.iinfo(np.int32).max then?

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.

experience_replay_interface.py: terminal_actions defined as int, but de-facto float

2 participants