Skip to content

An error occured when running 3.lgfuzzer.py #14

Description

@cintahue

Hello, thank you for your sharing.
I tried running 3.lgfuzzer.py, but I encountered an error that I couldn't solve.

2025-09-17 20:23:16.592629: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-09-17 20:23:16.593858: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2025-09-17 20:23:16.613226: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2025-09-17 20:23:16.613469: 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 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-09-17 20:23:16.958481: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2025-09-17 20:23:17.372303: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:266] failed call to cuInit: CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE: forward compatibility was attempted on non supported HW
2025-09-17 20:23:17.372329: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:168] retrieving CUDA diagnostic information for host: ovo
2025-09-17 20:23:17.372332: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:175] hostname: ovo
2025-09-17 20:23:17.372404: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:199] libcuda reported version is: 570.181.0
2025-09-17 20:23:17.372416: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:203] kernel reported version is: 570.153.2
2025-09-17 20:23:17.372419: E tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:312] kernel version 570.153.2 does not match DSO version 570.181.0 -- cannot find working devices in this configuration
2025-09-17 20:23:17.462711: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'gradients/split_2_grad/concat/split_2/split_dim' with dtype int32
	 [[{{node gradients/split_2_grad/concat/split_2/split_dim}}]]
2025-09-17 20:23:17.463108: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'gradients/split_grad/concat/split/split_dim' with dtype int32
	 [[{{node gradients/split_grad/concat/split/split_dim}}]]
2025-09-17 20:23:17.463516: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'gradients/split_1_grad/concat/split_1/split_dim' with dtype int32
	 [[{{node gradients/split_1_grad/concat/split_1/split_dim}}]]
Traceback (most recent call last):
  File "/home/ovo/Desktop/projects_ICS/ICSearcher/3.lgfuzzer.py", line 9, in <module>
    run_fuzzing(np_data)
  File "/home/ovo/Desktop/projects_ICS/ICSearcher/uavga/fuzzer.py", line 119, in run_fuzzing
    predictor.read_model()
  File "/home/ovo/Desktop/projects_ICS/ICSearcher/ModelFit/approximate.py", line 625, in read_model
    self._model = load_model(f'model/{toolConfig.MODE}/{self.in_out}/lstm.h5',custom_objects={'Adam': adam})
  File "/home/ovo/miniconda3/envs/ics/lib/python3.10/site-packages/tensorflow/python/keras/saving/save.py", line 200, in load_model
    return hdf5_format.load_model_from_hdf5(filepath, custom_objects,
  File "/home/ovo/miniconda3/envs/ics/lib/python3.10/site-packages/tensorflow/python/keras/saving/hdf5_format.py", line 198, in load_model_from_hdf5
    model.compile(**saving_utils.compile_args_from_training_config(
  File "/home/ovo/miniconda3/envs/ics/lib/python3.10/site-packages/tensorflow/python/keras/saving/saving_utils.py", line 207, in compile_args_from_training_config
    optimizer = optimizers.deserialize(optimizer_config)
  File "/home/ovo/miniconda3/envs/ics/lib/python3.10/site-packages/tensorflow/python/keras/optimizers.py", line 94, in deserialize
    return deserialize_keras_object(
  File "/home/ovo/miniconda3/envs/ics/lib/python3.10/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 659, in deserialize_keras_object
    (cls, cls_config) = class_and_config_for_serialized_keras_object(
  File "/home/ovo/miniconda3/envs/ics/lib/python3.10/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 556, in class_and_config_for_serialized_keras_object
    raise ValueError(
ValueError: Unknown optimizer: Custom>Adam. Please ensure this object is passed to the `custom_objects` argument. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.

Could you please give me some suggestions for solving it?
Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions