Skip to content

Commit

Permalink
note to self RE typecasting in the identity preprocessor -- not sure …
Browse files Browse the repository at this point in the history
…this is desired behaviour always
  • Loading branch information
josephdviviano committed Nov 23, 2023
1 parent a4c1786 commit f6edd53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gfn/preprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class IdentityPreprocessor(Preprocessor):
This is the default preprocessor used."""

def preprocess(self, states: States) -> TT["batch_shape", "input_dim"]:
return states.tensor.float()
return (
states.tensor.float()
) # TODO: should we typecast here? not a true identity...


class EnumPreprocessor(Preprocessor):
Expand Down

0 comments on commit f6edd53

Please sign in to comment.