MCPcopy Create free account
hub / github.com/Samsung/ONE / shape

Method shape

compiler/circle-eval-diff/src/Tensor.h:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 loco::Dimension &dim(uint32_t axis) { return _dims.at(axis); }
46
47 void shape(std::initializer_list<uint32_t> dims)
48 {
49 rank(dims.size());
50
51 uint32_t axis = 0;
52 for (auto d : dims)
53 {
54 dim(axis++) = d;
55 }
56 }
57
58private:
59 std::vector<loco::Dimension> _dims;

Callers 15

generate_recipeFunction · 0.45
cook_graphFunction · 0.45
insertGraphBodyMethod · 0.45
initMethod · 0.45
initMethod · 0.45
insertGraphBodyMethod · 0.45
runMethod · 0.45
dump_sub_graphFunction · 0.45
initMethod · 0.45
make_graphFunction · 0.45
TEST_FFunction · 0.45
FeatureObject.cppFile · 0.45

Calls 2

rankFunction · 0.50
sizeMethod · 0.45

Tested by 15

insertGraphBodyMethod · 0.36
initMethod · 0.36
initMethod · 0.36
insertGraphBodyMethod · 0.36
initMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36