Uses transpose to share weights.