Skip to content

Commit

Permalink
Merge pull request #84 from beringresearch/tf-2.4_compat
Browse files Browse the repository at this point in the history
Tf 2.4 compat
  • Loading branch information
Szubie authored Jan 5, 2021
2 parents 0d21ad9 + 270f7c1 commit 7712105
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 50 deletions.
4 changes: 2 additions & 2 deletions ivis/ivis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import os
import shutil
import pickle as pkl
import dill as pkl
import tensorflow as tf
import numpy as np

Expand Down Expand Up @@ -406,7 +406,7 @@ def save_model(self, folder_path, overwrite=False):

# save optimizer state in numpy array
np.save(os.path.join(folder_path, 'optimizer_state.npy'),
self.model_.optimizer.get_weights())
np.array(self.model_.optimizer.get_weights(), dtype=object))

json.dump(self.__getstate__(),
open(os.path.join(folder_path, 'ivis_params.json'), 'w'))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ numpy
scikit-learn>0.20.0
tqdm
annoy>=1.15.2
pytest
dill
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
'numpy',
'scikit-learn>0.20.0',
'annoy>=1.15.2',
'tqdm'
'tqdm',
'dill'
],
extras_require={
'tests': ['pytest'],
Expand Down
46 changes: 0 additions & 46 deletions tests/integration/test_h5.py

This file was deleted.

0 comments on commit 7712105

Please sign in to comment.