Skip to content

Commit

Permalink
Explicitly disable nativize tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 29, 2024
1 parent 06fdffa commit 9435fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemonred_puffer/policies/multi_convolutional.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from pokemonred_puffer.data.items import Items
from pokemonred_puffer.environment import PIXEL_VALUES

pufferlib.pytorch.nativize_tensor = torch.compiler.disable(pufferlib.pytorch.nativize_tensor)


# Because torch.nn.functional.one_hot cannot be traced by torch as of 2.2.0
def one_hot(tensor, num_classes):
Expand Down

0 comments on commit 9435fba

Please sign in to comment.