Hi, I am a bit disorientated, I am using h5py to read datasets from a hierarchical multi group h5 file
First I implemented a NN using jupyter-notebook on google colab, then I decided to move most of the stuff inside custom libraries and only run a command with arguments from jupyter notebook in colab but the run was much slower!
In both cases, the library reading the datasets on the hdf5 files are custom libraries (.py files called from jupyter)
The only difference is that in one case I loop through each epoch and batch from jupyter, in the new (and much slower implementation) I call custom libraries for looping through epochs and batches, that’s all.
In the last case, the code is much slower. I tracked carefully the origin of the delay and it seems to be when reading and managing datasets in h5py
runs at least 6 times faster when all the code in in jupyter than when I use custom libraries (remember this code above is in a custom library in both cases)
The code between the tags is the one which makes the difference and is identical in both cases
Hi, I am a bit disorientated, I am using h5py to read datasets from a hierarchical multi group h5 file
First I implemented a NN using jupyter-notebook on google colab, then I decided to move most of the stuff inside custom libraries and only run a command with arguments from jupyter notebook in colab but the run was much slower!
In both cases, the library reading the datasets on the hdf5 files are custom libraries (.py files called from jupyter)
The only difference is that in one case I loop through each epoch and batch from jupyter, in the new (and much slower implementation) I call custom libraries for looping through epochs and batches, that’s all.
In the last case, the code is much slower. I tracked carefully the origin of the delay and it seems to be when reading and managing datasets in h5py
For instance, the following code
runs at least 6 times faster when all the code in in jupyter than when I use custom libraries (remember this code above is in a custom library in both cases)
The code between the tags is the one which makes the difference and is identical in both cases
I can share repo link and jupyter files too
What is happening here?
Thanks!!!