MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / parse

Method parse

src/tf/parse_transpose.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 std::vector<op_desc> operators() const { return {{"Transpose"}}; }
37
38 instruction_ref parse(const op_desc& /*opd*/,
39 const tf_parser& /*parser*/,
40 const tf_parser::node_info& info,
41 std::vector<instruction_ref> args) const
42 {
43 auto perm = args[1]->eval().get<int32_t>().to_vector();
44 std::vector<int64_t> dims(perm.begin(), perm.end());
45
46 return info.add_instruction(make_op("transpose", {{"permutation", dims}}), args.front());
47 }
48};
49
50} // namespace tf

Callers

nothing calls this directly

Calls 7

frontMethod · 0.80
make_opFunction · 0.50
to_vectorMethod · 0.45
evalMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
add_instructionMethod · 0.45

Tested by

no test coverage detected