get_attr_tensor_dtype

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Obtains the attribute value of the numpy.dtype type with the specified name.

Prototype

1
get_attr_tensor_dtype(self, name: str) -> Tuple[int,  numpy.dtype]

Parameters

Parameter

Input/Output

Description

name

Input

Attribute name.

Returns

Return code and attribute value of the numpy.dtype type.

  • If this attribute exists, the first element in the returned tuple is FLOW_FUNC_SUCCESS, and the second element is the attribute value of the numpy.dtype type.
  • If the attribute does not exist, the tuple contains only the error code.

Exception Handling

None

Constraints

None