TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

tensorplay.ao.pruning.validate_pruning_amount

tensorplay.ao.pruning.validate_pruning_amount(amount: int, tensor_size: int) → None[source]

Check that an absolute pruning count fits the data being pruned.

Parameters:
  • amount – absolute number of units to prune.

  • tensor_size – number of units available for pruning.

Raises:

ValueError – if amount exceeds tensor_size.

On this page

Ask DeepWiki