Shared weights and bias