Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update resizing.py #3

Open
wants to merge 1 commit into
base: Note-7.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Note/nn/layer/image_preprocessing/resizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(
def __call__(self, data):
# tf.image.resize will always output float32
# and operate more efficiently on float32
# unless interpolation is nearest, in which case ouput type matches
# unless interpolation is nearest, in which case output type matches
# input type.
if self.interpolation == "nearest":
input_dtype = data.dtype
Expand All @@ -102,4 +102,4 @@ def resize_to_aspect(x):
else:
outputs = tf.image.resize(data, size=size, method=self.method)

return tf.cast(outputs, data.dtype)
return tf.cast(outputs, data.dtype)