Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

Type Class

Base class to define element type ov_element_c#_api

Definition

Namespace: OpenVinoSharp.element
Assembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
C#
public class Type
Inheritance
Object    Type
Derived

Constructors

Type(ElementType) OvType constructor, by ElementType initialize the Type class
Type(String) OvType constructor, initializing element.Type through data type string
Type(Type) OvType copy constructor, by Type initialize the Type class
Type(Type_t) OvType constructor, by Type_t initialize the Type class

Methods

bitwidth Obtain the size of the current data type
c_type_string Get type full name string.
get_type Get data type.
get_type_info Get the current type of the Type_ Info
get_type_name Get abbreviated name.
hash Get type number.
is_integral Determine whether it is a real number
is_integral_number Determine whether the current data type is integral number.
is_quantized Determine whether the current data is of quantum type
is_real Determine whether the current data type is real.
is_signed Determine whether the current data type is signed.
is_static Determine whether the current data type is static.
size Get data type length.
to_string Convert data type to string
type_from_string Convert type string to Type class

Fields

m_type data type, defined based on Type_t.

See Also