FilesLast commitLast update
4 days ago
2 months ago
3 months ago
9 days ago
20 days ago
28 days ago
10 days ago
9 days ago
28 days ago
1 month ago
9 days ago
README

FloorDiv

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products ×
Atlas inference products √
Atlas training products √

Function Description

  • Operator function: performs the division computation and rounds the result down.

  • Computation formula:

    outi=floor(selfiotheri)out_i = floor(\frac{self_i}{other_i})

  • Parameter Description:

    Parameter Name Input/Output Description Usage Data Type Data Format Dimension (shape) Non-contiguous Tensor
    self Input Input self in the formula.
    • The data type of self and the data type of other must satisfy the data type deduction rules (for details, see [Deduction Relationship](../../docs/en/context/deduction_relationship.md)).
    • The shape of self must satisfy the [broadcast relationship](../../docs/en/context/broadcast_relationship.md) with other.
    FLOAT, FLOAT16, DOUBLE, INT32, INT64, INT16, INT8, UINT8, BOOL, COMPLEX128, COMPLEX64, BFLOAT16 ND No more than 8 dimensions √
    other Input Input other in the formula.
    • The data type of other and the data type of self must satisfy the data type deduction rules (for details, see [Deduction Relationship](../../docs/en/context/deduction_relationship.md)).
    • The shape of other must satisfy the [broadcast relationship](../../docs/en/context/broadcast_relationship.md) with self.
    FLOAT, FLOAT16, DOUBLE, INT32, INT64, INT16, INT8, UINT8, BOOL, COMPLEX128, COMPLEX64, BFLOAT16 ND No more than 8 dimensions √
    out Output Output out in the formula.
    • The data type must be a data type to which the deduced data types of self and other can be converted (for details, see [Conversion Relationship](../../docs/en/context/conversion_relationship.md)).
    • The shape must be the shape of self and other after broadcasting.
    FLOAT, FLOAT16, DOUBLE, INT32, INT64, INT16, INT8, UINT8, BOOL, COMPLEX128, COMPLEX64, BFLOAT16 ND No more than 8 dimensions √
    workspaceSize Output Returns the size of the workspace to be requested on the device. - - - - -
    executor Output Returns the operator executor, which contains the operator computation process. - - - - -
    • Atlas training products: The BFLOAT16 data type is not supported.

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_floor_divide Invokes the FloorDiv operator through the aclnnFloorDivide and aclnnInplaceFloorDivide APIs