Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
onnx-array-api 0.3.1 documentation
Logo
onnx-array-api 0.3.1 documentation

Contents

More

Back to top

npx.npx_types

DType

classonnx_array_api.npx.npx_types.DType(code:int|str)[source]

Type of the element type returned by tensorsfollowing theArray API.

Parameters:

code – element type based on onnx definition,if str, it looks into classonnx.TensorPrototo retrieve the code

classmethodtype_name()str[source]

Returns its full name.

ElemType

classonnx_array_api.npx.npx_types.ElemType[source]

Allowed element type based on numpy dtypes.

Parameters:

dtype – DType or a string

classmethodget_set_name(dtypes)[source]

Returns the set name.

classmethodtype_name()str[source]

Returns its fullname.

OptParType

classonnx_array_api.npx.npx_types.OptParType[source]

Defines an optional parameter type.

Parameters:

dtype – parameter type

classmethodtype_name()str[source]

Returns its full name.

OptTensorType

classonnx_array_api.npx.npx_types.OptTensorType[source]

Defines an optional tensor type.

Parameters:

dtype – element type

ParType

classonnx_array_api.npx.npx_types.ParType[source]

Defines a parameter type.

Parameters:
  • dtype – parameter type

  • optional – is optional or not

classmethodonnx_type()[source]

Returns the onnx corresponding type.

classmethodtype_name()str[source]

Returns its full name.

Scalar

classonnx_array_api.npx.npx_types.Scalar(value:float|int|bool)[source]

Defines a scalar.

SequenceType

classonnx_array_api.npx.npx_types.SequenceType[source]

Defines a sequence of tensors.

classmethodtype_name()str[source]

Returns its full name.

ShapeType

classonnx_array_api.npx.npx_types.ShapeType(iterable=(),/)[source]

Defines a shape type.

TensorType

classonnx_array_api.npx.npx_types.TensorType[source]

Used to annotate functions.

Parameters:
  • dtypes – tuple ofElemType

  • shape – tuple of integer or strings or None

  • name – name of the type

classmethodissuperset(tensor_type:type)bool[source]

Tells ifcls is a superset oftensor_type.

classmethodsupports_dtype(dtype:DType)bool[source]

Determines if the element typedtypeis withindtypes.

classmethodtype_name()str[source]

Returns its full name.

TupleType

classonnx_array_api.npx.npx_types.TupleType[source]

Defines a sequence of tensors.

classmethodlen()[source]

Returns the number of types.

classmethodtype_name()str[source]

Returns its full name.

Shortcuts

classonnx_array_api.npx.npx_types.Bool
classonnx_array_api.npx.npx_types.BFloat16
classonnx_array_api.npx.npx_types.Float16
classonnx_array_api.npx.npx_types.Float32
onnx_array_api.npx.npx_types.Float64

alias ofFloat32

onnx_array_api.npx.npx_types.Int8

alias ofint8

onnx_array_api.npx.npx_types.Int16

alias ofint16

onnx_array_api.npx.npx_types.Int32

alias ofint32

onnx_array_api.npx.npx_types.Int64

alias ofint64

onnx_array_api.npx.npx_types.UInt8

alias ofuint8

onnx_array_api.npx.npx_types.UInt16

alias ofuint16

onnx_array_api.npx.npx_types.UInt32

alias ofuint32

onnx_array_api.npx.npx_types.UInt64

alias ofuint64

On this page

[8]ページ先頭

©2009-2025 Movatter.jp