Skip to content

Commit

Permalink
Fix working with newer tensorflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-cogliati-inl committed Dec 11, 2024
1 parent e38821c commit eb1680d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ravenframework/SupervisedLearning/KerasBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,10 @@ def __returnInitialParametersLocal__(self):
@ In, None
@ Out, params, dict, dictionary of parameter names and initial values
"""
params = copy.deepcopy(self.__dict__)
selfDict = copy.copy(self.__dict__)
# labelEncoder can't be deepcopied so remove if it exists
selfDict.pop("labelEncoder", None)
params = copy.deepcopy(selfDict)
return params

def __returnCurrentSettingLocal__(self):
Expand Down

0 comments on commit eb1680d

Please sign in to comment.