Skip to content

Commit

Permalink
Disable kAllNHWC
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfurmanek committed Sep 10, 2024
1 parent be05cff commit b1629a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions third_party/xla/xla/service/gpu/gpu_layout_assignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ HeuristicLayoutAssignment(const HloInstruction* instr,
return kAllNHWC;
}

const auto* rocm_compute_capability =
std::get_if<se::RocmComputeCapability>(&gpu_version);
if (rocm_compute_capability && input_ty == F16) return kAllNHWC;

// If we're not Volta or not fp16/bfloat16, or not conv2D, the decision is
// easy: Use NCHW.
const bool isFloat16 = (input_ty == F16) || (input_ty == BF16);
Expand Down

0 comments on commit b1629a0

Please sign in to comment.