File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1010 fail-fast : false
1111 matrix :
1212 python-version : ["3.12"]
13- # ml-deps:
14- # - "torch==2.1.2+cpu torchvision==0.16.2+cpu torchdata==0.7.1 tensorflow-cpu==2.15.1 "
15- # - "torch==2.3.1+cpu torchvision==0.18.1+cpu torchdata==0.8.0 'tensorflow-cpu<2.16'"
13+
1614 env :
1715 run_coverage : ${{ github.ref == 'refs/heads/master' }}
1816
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ def __load_legacy(
358358 try :
359359 # In Keras 3.x, use build() instead of _create_all_weights()
360360 if int (keras_major ) >= 3 :
361- if hasattr (model .optimizer , ' build' ):
361+ if hasattr (model .optimizer , " build" ):
362362 model .optimizer .build (model .trainable_variables )
363363 else :
364364 model .optimizer ._create_all_weights (model .trainable_variables )
@@ -435,7 +435,7 @@ def __load(
435435 try :
436436 # In Keras 3.x, use build() instead of _create_all_weights()
437437 if int (keras_major ) >= 3 :
438- if hasattr (model .optimizer , ' build' ):
438+ if hasattr (model .optimizer , " build" ):
439439 model .optimizer .build (model .trainable_variables )
440440 else :
441441 model .optimizer ._create_all_weights (model .trainable_variables )
You can’t perform that action at this time.
0 commit comments