Results 2 issues of Aarav Maheshwari

error: #105297 I have added validation code in process_utils.cc for hat clamps thread count values to a safe maximum of 1024, logs warnings for unreasonably large values, and handles negative...

awaiting review
size:M
prtype:bugfix
comp:core

Fixes [tensorflow/tensorflow#97599] (https://github.com/tensorflow/tensorflow/issues/97599). Replaced tf.Variable(...) with add_weight(...) in the custom model to avoid training warning and ensure proper Keras weight tracking.