TorchLean API

NN.GraphSpec.Primitives

GraphSpec Primitive Packs #

This umbrella re-exports the non-core GraphSpec primitive packs.

GraphSpec primitives are operation adapters, not models:

The small always-available primitives (linear, relu, softmax) live in NN.GraphSpec.Core because they are part of the minimal sequential DSL examples and lowering interface. Larger domain-specific packs live under NN.GraphSpec.Primitives/* so the core language does not become a grab bag of every layer TorchLean supports.

Current extension pack:

Adding a new operation to GraphSpec means giving it both meanings: