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

Function GetAttrLayout

tensorflow/compiler/xrt/tests/raw_api_test.cc:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69std::vector<int> GetAttrLayout(absl::Span<const int64> minor_to_mayor) {
70 std::vector<int> layout;
71 for (auto dim : minor_to_mayor) {
72 layout.push_back(static_cast<int>(dim));
73 }
74 return layout;
75}
76
77xla::LiteralProto TwoElementTuple() {
78 auto array = xla::LiteralUtil::CreateR1<float>({1.0f, 3.0f});

Callers 1

TESTFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected