-
Notifications
You must be signed in to change notification settings - Fork 91
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
Error when saving TensorFlowModelDataset
as partition
#759
Comments
Hi @anabelchuinard, thanks for opening this issue and sorry for the delay. It will take us some time but I'm labeling this issue so we don't lose track of it. |
Hi @anabelchuinard, do you still need help fixing this issue? |
@merelcht I found a non-kedronic workaround for this but would love to know if there is now a kedronic way for batch-saving those models. |
Using the kedro-plugins/kedro-datasets/kedro_datasets/partitions/partitioned_dataset.py Lines 313 to 314 in be99fec
|
TensorFlowModelDataset
as partition
Description
Can't save TensorFlowModelDataset objects as partition.
Context
I am dealing with a project where I have to train several models concurrently. I started writing my code using PartitionedDataset where each partition corresponds to the data relative to one training. When I am trying to save the resulting tensorflow models as a partition, I get an error. I wonder is this has to do with the fact that those inherit from the AbstractVersionedDataset instead of the AbstractDataset. And if yes, I am interested to know if there is any workaround for batch saving those.
This is the instance of my catalog corresponding to the models I want to save:
Note: Saving one model (not as partition) works.
Steps to Reproduce
Expected Result
Should save one .hdf5 file per partition with the name of the file being the associate dictionary key.
Actual Result
Getting this error:
Your Environment
pip show kedro
orkedro -V
): kedro, version 0.18.12python -V
): 3.9.16The text was updated successfully, but these errors were encountered: