Skip to content

Commit

Permalink
Add trivial conversion of np.int32 and np.float32 in service message …
Browse files Browse the repository at this point in the history
…conversion
  • Loading branch information
sogartar committed Mar 31, 2022
1 parent c3cae40 commit 9fe45c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler_gym/service/proto/py_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ def make_message_default_converter() -> TypeBasedConverter:
conversion_map = {
bool: convert_trivial,
int: convert_trivial,
np.int32: convert_trivial,
float: convert_trivial,
np.float32: convert_trivial,
str: convert_trivial,
bytes: convert_bytes_to_numpy,
BooleanTensor: convert_tensor_message_to_numpy,
Expand Down

0 comments on commit 9fe45c1

Please sign in to comment.