Composition/chaining for forward-passing transformer functions