towhee.serve.triton.type_genΒΆ

Functions

get_init_code

get_type_info

handle_type_annotations

Template for handling type annotations

is_scalar

tensor2bool

tensor2float

tensor2int

tensor2ndarray

tensor2str

Classes

AttrInfo

AudioFrameType

A collection of type handling function of towhee.types.AudioFrame

BoolType

A collection of type handling function of bool

FloatType

A collection of type handling function of float

ImageType

A collection of type handling function of towhee.types.Image

IntType

A collection of type handling function of int

NpFloat16Type

A collection of type handling function of numpy.float16

NpFloat32Type

A collection of type handling function of numpy.float32

NpFloat64Type

A collection of type handling function of numpy.float64

NpInt16Type

A collection of type handling function of numpy.int16

NpInt32Type

A collection of type handling function of numpy.int32

NpInt64Type

A collection of type handling function of numpy.int64

NpInt8Type

A collection of type handling function of numpy.int8

NpUint16Type

A collection of type handling function of numpy.uint16

NpUint32Type

A collection of type handling function of numpy.uint32

NpUint64Type

A collection of type handling function of numpy.uint64

NpUint8Type

A collection of type handling function of numpy.uint8

StringType

A collection of type handling function of str

TypeInfo

VideoFrameType

A collection of type handling function of towhee.types.VideoFrame