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

Method Reshape

core/lib/tensor.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace TEngine {
33
34void Tensor::Reshape(const TShape& shape)
35{
36 if(shape_ == shape)
37 return;
38
39 reshaped_count_ = consumer.size();
40
41 shape_ = shape;
42}
43
44void Tensor::UpdateReshapeCount(void)
45{

Callers 3

set_tensor_layoutFunction · 0.45
set_tensor_shapeFunction · 0.45
RunMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected