Skip to content

Commit 5389aff

Browse files
Fix check_fitted_network
1 parent 2e8f569 commit 5389aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapt/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def check_fitted_network(estimator):
611611
estimator : tensorflow Model
612612
Modified fitted network
613613
"""
614-
if hasattr(estimator, "__deepcopy__"):
614+
if isinstance(estimator, Model):
615615
estimator.__deepcopy__ = __deepcopy__.__get__(estimator)
616616
return estimator
617617

0 commit comments

Comments
 (0)