Comparison with literal shape should ignore tiles.
PiperOrigin-RevId: 243144930
This commit is contained in:
parent
c80ba8dba5
commit
4e28bb323d
@ -423,7 +423,8 @@ Status HloEvaluator::HandleParameter(HloInstruction* parameter) {
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
const Literal* input_literal = arg_literals_[parameter->parameter_number()];
|
const Literal* input_literal = arg_literals_[parameter->parameter_number()];
|
||||||
VLOG(2) << "Parameter evaluated to: " << input_literal->ToString();
|
VLOG(2) << "Parameter evaluated to: " << input_literal->ToString();
|
||||||
DCHECK(ShapeUtil::Equal(parameter->shape(), input_literal->shape()))
|
DCHECK(Shape::Equal().MinorToMajorOnlyInLayout()(parameter->shape(),
|
||||||
|
input_literal->shape()))
|
||||||
<< "parameter shape is: "
|
<< "parameter shape is: "
|
||||||
<< ShapeUtil::HumanStringWithLayout(parameter->shape())
|
<< ShapeUtil::HumanStringWithLayout(parameter->shape())
|
||||||
<< ", but input literal shape is: "
|
<< ", but input literal shape is: "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user