pub struct LayerInfo {Show 19 fields
pub name: String,
pub kind: String,
pub typeindex: i32,
pub bottom_shapes: Vec<ShapeInfo>,
pub top_shapes: Vec<ShapeInfo>,
pub bottoms: usize,
pub tops: usize,
pub support_vulkan: bool,
pub support_vulkan_packing: bool,
pub support_packing: bool,
pub support_fp16_storage: bool,
pub support_bf16_storage: bool,
pub one_blob_only: bool,
pub support_inplace: bool,
pub support_any_packing: bool,
pub support_vulkan_any_packing: bool,
pub support_int8_storage: bool,
pub support_tensor_storage: bool,
pub support_batch: bool,
}Expand description
One layer of a loaded network.
The support flags are ncnn’s declarations for that layer type, which is where the runtime
fallback decision starts: a layer without support_vulkan runs on the CPU even when the network
uses a device. They describe the layer type, not a promise about the selected kernel.
Fields§
§name: StringLayer name from the parameter text.
kind: StringRegistered layer type, such as Convolution.
typeindex: i32Registered type index.
bottom_shapes: Vec<ShapeInfo>Shapes this layer recorded for its inputs, in bottom order.
top_shapes: Vec<ShapeInfo>Shapes this layer recorded for its outputs, in top order.
bottoms: usizeNumber of bottom blobs the layer reads.
tops: usizeNumber of top blobs the layer writes.
support_vulkan: boolDeclares a Vulkan implementation.
support_vulkan_packing: boolDeclares Vulkan support for packed layouts.
support_packing: boolDeclares support for packed CPU layouts.
support_fp16_storage: boolDeclares support for FP16 storage.
support_bf16_storage: boolDeclares support for BF16 storage.
one_blob_only: boolReads exactly one bottom blob.
support_inplace: boolComputes in place on its input blob.
support_any_packing: boolAccepts a bottom blob whose layout has any element packing.
support_vulkan_any_packing: boolAccepts any element packing on a device.
support_int8_storage: boolAccepts INT8 storage.
support_tensor_storage: boolAccepts the shader tensor storage layout.
support_batch: boolAccepts a batch count above one.