Skip to content

Commit

Permalink
Make sure we do low precision intermediate the same way as Swift repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Sep 15, 2024
1 parent ffd6604 commit eda29de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nnc/mfa/v2/AttentionDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ AttentionOperands<GEMMOperandPrecision> AttentionDescriptor::createRegisterPreci
// MARK: - AttentionDescriptor+Parameters

std::vector<AttentionParameterRow> AttentionDescriptor::parameterFile(AttentionKernelType type, MTL::Device *const device) const noexcept {
if (lowPrecisionInputs || lowPrecisionIntermediates) {
if (lowPrecisionInputs && lowPrecisionIntermediates) {
switch (type.value) {
case AttentionKernelType::forward:
return forwardMixed(device);
Expand Down

0 comments on commit eda29de

Please sign in to comment.