tensorflow / model-optimization

A toolkit to optimize ML models for deployment for Keras and TensorFlow, including quantization and pruning.
https://www.tensorflow.org/model_optimization
Apache License 2.0
1.48k stars 320 forks source link

Create a local copy of `keras.utils.generic_utils.to_snake_case` at `pruning_wrapper.py`. #1057

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Create a local copy of keras.utils.generic_utils.to_snake_case at pruning_wrapper.py.

to_snake_case is private to the keras.utils module and is not exported externally. Since this is a short utility function, we can simply have a copy of this function locally.