The keras API in TF-2.1 (and possibly earlier) requires hdf5 support to save models: https://www.tensorflow.org/guide/keras/save_and_serialize Adding dev-python/h5py to RDEPEND does the trick.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f654de63913a1631a9a7ec25cee4f8447de7f2f commit 0f654de63913a1631a9a7ec25cee4f8447de7f2f Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2020-08-29 21:50:43 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2020-08-30 00:25:08 +0000 sci-libs/tensorflow: Fix build failures in 2.2 Patch needed to build against numpy-1.19. Also updated deps for flatbuffers, h5py Closes: https://bugs.gentoo.org/736155 Closes: https://bugs.gentoo.org/710074 Closes: https://bugs.gentoo.org/725120 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Jason Zaman <perfinion@gentoo.org> sci-libs/tensorflow/Manifest | 2 +- .../{tensorflow-2.2.0.ebuild => tensorflow-2.2.0-r1.ebuild} | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-)