ValueError: prune_low_magnitude
can only prune an object of the following types: keras.models.Sequential, keras functional model, keras.layers.Layer, list of keras.layers.Layer. You passed an object of type: Sequential.
#1167
Labels
bug
Something isn't working
I am trying to prune a CNN model given below in the python script.
Describe the bug
I am trying to execute code, which gives me the error every time. Is it a version mismatch or something else?
System information
TensorFlow version (installed from source or binary): 2.17.1
TensorFlow Model Optimization version (installed from source or binary): 0.8.0
Python version: 3.10.12 [GCC 11.4.0]
Code to reproduce the issue
Screenshots
N/A
Additional context
Please help me to solve the issue.
The text was updated successfully, but these errors were encountered: