mmdeploy/docs/en/ops/ncnn.md
hanrui1sensetime 9e22c75b70
[Docs] add ncnn ops docs samples (#313)
* add ncnn ops docs samples

* link ops to ncnn.md

* fix ncnn.md grammar

* fix grammar typo
2021-12-22 15:50:11 +08:00

818 B

ncnn Ops

Shape

Description

Get the shape of the ncnn blobs.

Parameters

Shape has no parameters.

Inputs

inputs[0]: ncnn.Mat
bottom_blob; An ncnn.Mat. If ncnn version >= 1.0.20201208, the dimension of the bottom_blob should be no more than 4, or the dimension of the bottom_blob should be no more than 3.

Outputs

outputs[0]: T
top_blob; 1-D tensor of shape (bottom_blob.dims,), `bottom_blob.dims` is the input blob dimensions.

Type Constraints

  • ncnn.Mat: Mat(float32)