sciann / sciann-applications

A place to share problems solved with SciANN
https://www.sciann.com
Other
238 stars 128 forks source link

Unrecognized keyword arguments: {'save_weights_to': 'output/res_tanh_40x40x40x40_WEIGHTS', 'save_weights_freq': 100000} #43

Open KP12SIMM opened 1 month ago

KP12SIMM commented 1 month ago

runfile('/Users/krupalbpatel/.spyder-py3/temp.py', wdir='/Users/krupalbpatel/.spyder-py3') 2024-08-23 15:12:13.699447: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. ---------------------- SCIANN 0.7.0.1 ---------------------- For details, check out our review paper and the documentation at:

TensorFlow Version: 2.12.0 Python Version: 3.11.7 (main, Dec 15 2023, 12:09:04) [Clang 14.0.6 ]

Total samples: 400 Batch size: 32 Total batches: 13

2024-08-23 15:12:48.535970: W tensorflow/c/c_api.cc:300] Operation '{name:'D40b_10_1/bias/Assign' id:335 op device:{requested: '', assigned: ''} def:{{{node D40b_10_1/bias/Assign}} = AssignVariableOp[_has_manual_control_dependencies=true, dtype=DT_DOUBLE, validate_shape=false](D40b_10_1/bias, D40b_10_1/bias/Initializer/random_uniform)}}' was changed by setting attribute after it was run by a session. This mutation will have no effect, and will trigger an error in the future. Either don't modify nodes after running them or create a new session. Traceback (most recent call last):

File /opt/anaconda3/lib/python3.11/site-packages/spyder_kernels/py3compat.py:356 in compat_exec exec(code, globals, locals)

File ~/.spyder-py3/temp.py:332 train()

File ~/.spyder-py3/temp.py:225 in train history = model.train(

File /opt/anaconda3/lib/python3.11/site-packages/sciann/models/model.py:560 in train history = opt_fit_func(

File /opt/anaconda3/lib/python3.11/site-packages/keras/engine/training_v1.py:851 in fit raise TypeError("Unrecognized keyword arguments: " + str(kwargs))

TypeError: Unrecognized keyword arguments: {'save_weights_to': 'output/res_tanh_40x40x40x40_WEIGHTS', 'save_weights_freq': 100000}

KP12SIMM commented 1 month ago

how to solve this error