semvec/pypi-packages huggingface dataset:
tfsurgeon 0.0.8
Edits tensorflow model layers
Requires Python: >=3.9

# TFSurgeon

Allows for dynamic tensorflow keras model edition.
You can install this package with pip and call it as `from tfsurgeon import edit_model`.

## How to use

- [x] remove layers based on layer type
- [x] remove layers based on name or index
- [x] replace layers from one type to another
- [x] replace specific layer (name) by another layer (callable)

see docstring for examples in `src/tfsurgeon/tfsurgeon.py`.

### import

```
from tfsurgeon import edit_model
import tensorflow as tf

model = tf.keras.applications.MobileNetV2(weights=None)
new_model = edit_model(
    model=model,
    replace_layers_by_types=[
        [tf.keras.layers.BatchNormalization, tf.keras.layers.LayerNormalization]
    ],
    verbose=True,
)
```

### CLI

no supported yet
CMDFormatter 0.1.3
Package to style and format cmd print
Keywords: python,cmd,terminal,styling,user-experience,powershell


## 'A package that allows to print into the terminal in a more styled and formatted new formmat\n use write function in order to get benefit of enhanced print function. attribute of write functions are:-\n text = Text to be printed in the console\n color = specify the color of text to be printed\n colorList = provide the list of color to be used while printing the text \n cyclic = provide False if trying  to print all text in same color provide true if trying to provide multiple colors to the text file\n durationInMilis: provide the duration in milisecond the time gap between the two characters of text.\n totalTime: parameter to provide the time in which function must print all the colors.\n end : the end same as print end parameter.\n