TODO(ezhulenev): BiasAddOp is not really layout sensitive, it must only support folding operand transposes.
| 620 | // TODO(ezhulenev): BiasAddOp is not really layout sensitive, it must only |
| 621 | // support folding operand transposes. |
| 622 | LogicalResult BiasAddOp::UpdateDataFormat(StringRef data_format) { |
| 623 | auto ranked = value().getType().dyn_cast<RankedTensorType>(); |
| 624 | if (!ranked || ranked.getRank() != 4) return failure(); |
| 625 | |
| 626 | return ::mlir::TF::UpdateDataFormat(data_format, this); |
| 627 | } |
| 628 | |
| 629 | //===----------------------------------------------------------------------===// |
| 630 | // BiasAddGradOp |
no test coverage detected