View source on GitHub |
Counts and returns model FLOPs.
tfm.core.train_utils.try_count_flops(
model: Union[tf.Module, tf.keras.Model],
inputs_kwargs: Optional[Dict[str, Any]] = None,
output_path: Optional[str] = None
)
Returns | |
---|---|
The model's FLOPs. |