Skip to content

Commit

Permalink
compile disable nativize tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jul 11, 2024
1 parent 85fbb1c commit 4046ea9
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 4046ea9

Please sign in to comment.