Skip to content

Commit 6c983a2

Browse files
James SpoonerGoogle-ML-Automation
authored andcommitted
Allow C64 and F32 buffers to be aliased (since a C64 tensor is just two F32 tensors stapled together).
PiperOrigin-RevId: 837160497
1 parent 5194cea commit 6c983a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xla/hlo/transforms/bfloat16_propagation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ bool BFloat16Propagation::ResolveInconsistencyOfAliasingBuffersHelper(
736736
}
737737
VLOG(2) << "Adjust to F32 due to aliased dataflow value: "
738738
<< value->ToString() << "\n";
739-
CHECK_EQ(value_type, F32);
739+
CHECK(value_type == F32 || value_type == C64);
740740
type = F32;
741741
break;
742742
}

0 commit comments

Comments
 (0)