MCPcopy Create free account
hub / github.com/OAID/Tengine / InferShape

Method InferShape

operator/operator/ceil.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5namespace TEngine {
6bool Ceil::InferShape(const std::vector<TEngine::TShape>& ishape, std::vector<TEngine::TShape>& oshape, int layout)
7{
8 const TShape& input = ishape[0];
9 const std::vector<int>& in_dim = input.GetDim();
10
11 TShape shape;
12
13 shape.SetDim(in_dim);
14 shape.SetDataLayout(input.GetDataLayout());
15
16 oshape[0] = shape;
17
18 return true;
19}
20void Ceil::SetSchema(void)
21{
22 Input({"input:float32"})

Callers

nothing calls this directly

Calls 3

SetDimMethod · 0.80
SetDataLayoutMethod · 0.80
GetDataLayoutMethod · 0.80

Tested by

no test coverage detected