-
Notifications
You must be signed in to change notification settings - Fork 90
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
fix(datasets): Use put()
and get()
instead of copy
in TensorFlowModelDataset
's _save
and _load
methods.
#844
Conversation
…owModelDataset`'s `_save` and `_load` methods. Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the investigation and contribution of the fix @gitgud5000 ! This looks good to me 👍
Can you add a comment in the release notes and add your name to the contributors list for the upcoming release as well? 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @gitgud5000! ⭐
Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com>
Signed-off-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com>
…owModelDataset`'s `_save` and `_load` methods. (kedro-org#844) * fix(datasets): Use `put()` and `get()` instead of `copy` in `TensorFlowModelDataset`'s `_save` and `_load` methods. Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> * chore: Added comments of changes in `RELEASE.md` Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> --------- Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> Signed-off-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com> Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> Co-authored-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com> Signed-off-by: Harm Matthias Harms <matthias.harms@quis.de>
…owModelDataset`'s `_save` and `_load` methods. (kedro-org#844) * fix(datasets): Use `put()` and `get()` instead of `copy` in `TensorFlowModelDataset`'s `_save` and `_load` methods. Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> * chore: Added comments of changes in `RELEASE.md` Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> --------- Signed-off-by: gitgud5000 <17186026+gitgud5000@users.noreply.github.com> Signed-off-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com> Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> Co-authored-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com> Signed-off-by: Minura Punchihewa <minurapunchihewa17@gmail.com>
Description
This PR resolves the issue in #839, where saving
TensorFlowModelDataset
to Azure Blob Storage fails due to incorrect use of.copy()
from thefsspec.filesystem
interface.Development notes
The issue occurs in the
_save
and_load
methods on lines 147 and 172, where.copy()
is used. According to the fsspec documentation,.copy()
is intended for remote-to-remote transfers. Since this involves copying from a local filesystem to remote storage,.put()
should be used for saving and.get()
for loading.The code has been updated to use
.put()
and.get()
accordingly, replacing the use of.copy()
.Both methods work for local-to-local and local-to-remote(& vice versa) transfers based on testing.
Checklist
RELEASE.md
file