MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / UpdateDataFormat

Method UpdateDataFormat

tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc:622–627  ·  view source on GitHub ↗

TODO(ezhulenev): BiasAddOp is not really layout sensitive, it must only support folding operand transposes.

Source from the content-addressed store, hash-verified

620// TODO(ezhulenev): BiasAddOp is not really layout sensitive, it must only
621// support folding operand transposes.
622LogicalResult 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

Callers 1

runOnFunctionMethod · 0.80

Calls 7

UpdateDataFormatFunction · 0.85
setAttrFunction · 0.85
ShuffleArrayAttrFunction · 0.85
data_formatMethod · 0.80
GetDataFormatPermutationFunction · 0.70
getTypeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected