Skip to content

Commit

Permalink
Update tiktorch/runner/prediction_pipeline/_preprocessing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape committed Jul 15, 2021
1 parent 3b1d274 commit b32e75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiktorch/runner/prediction_pipeline/_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def zero_mean_unit_variance(tensor: xr.DataArray, axes=None, eps=1.0e-6, mode="p

# monkey patch: maks sure we don't change dtype
# todo: allow preprocessing to change dtype?
return ret.astype(tensor.dtype)
return ret.astype("float32")


def binarize(tensor: xr.DataArray, *, threshold) -> xr.DataArray:
Expand Down

0 comments on commit b32e75c

Please sign in to comment.