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

Method IsRank2Transpose

tensorflow/compiler/xla/service/hlo_instructions.cc:974–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972}
973
974bool HloTransposeInstruction::IsRank2Transpose() const {
975 return dimensions() == std::vector<int64>({1, 0}) &&
976 shape().dimensions_size() == 2 &&
977 std::equal(shape().dimensions().begin(), shape().dimensions().end(),
978 operand(0)->shape().dimensions().rbegin());
979}
980
981HloInstructionProto HloTransposeInstruction::ToProto() const {
982 HloInstructionProto proto = HloInstruction::ToProto();

Callers

nothing calls this directly

Calls 8

dimensions_sizeMethod · 0.80
rbeginMethod · 0.80
shapeFunction · 0.50
equalFunction · 0.50
beginMethod · 0.45
dimensionsMethod · 0.45
endMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected