Skip to main content

ActivationLogicCostScenario

Training scenarios · Implementation: mlsysim/engine/scenario_definitions/training.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Logic cost of two activation datapaths, in transistor equivalents (an illustrative budget).

Notes

Equation: The illustrative implementation ratio divides costly_transistors by cheap_transistors.

Assumptions: Both budgets count transistor equivalents at a comparable implementation boundary.

Excludes: Process scaling, area routing overhead, power, and measured synthesized circuits.

References

Derivation: Dividing two explicitly supplied transistor-equivalent budgets compares the assumed activation implementations. The ratio is defined by those budgets; it is not a universal sigmoid-to-ReLU cost law.

Examples

>>> from mlsysim import Scenarios
>>> s = Scenarios.ReluVersusSigmoidLogic
>>> s.ratio > 0
True

Attributes

Name Description
cheap_label
cheap_transistors
costly_label
costly_transistors
ratio Dimensionless costly-to-cheap transistor budget ratio under the supplied illustrative implementations.

cheap_label

Type: str.

Declared default: required.

cheap_transistors

Type: int.

Declared default: required.

costly_label

Type: str.

Declared default: required.

costly_transistors

Type: int.

Declared default: required.

ratio

engine.scenario_types.ActivationLogicCostScenario.ratio

Dimensionless costly-to-cheap transistor budget ratio under the supplied illustrative implementations.

Equation: costly_transistors / cheap_transistors.

Back to top