# LessOrEqual¶

## LessOrEqual - 16¶

### Version¶

• name: LessOrEqual (GitHub)

• domain: main

• since_version: 16

• function: True

• support_level: SupportType.COMMON

• shape inference: False

This version of the operator has been available since version 16.

### Summary¶

Returns the tensor resulted from performing the less_equal logical operation elementwise on the input tensors A and B (with Numpy-style broadcasting support).

#### Function Body¶

The function definition for this operator.

<
domain: "",
opset_import: ["" : 16]
>
LessOrEqual (A, B) => (C)
{
O1 = Less (A, B)
O2 = Equal (A, B)
C = Or (O1, O2)
}


### Inputs¶

• A (heterogeneous) - T:

First input operand for the logical operator.

• B (heterogeneous) - T:

Second input operand for the logical operator.

### Outputs¶

• C (heterogeneous) - T1:

Result tensor.

### Type Constraints¶

• T in ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ):

Constrain input types to all numeric tensors.

• T1 in ( tensor(bool) ):

Constrain output to boolean tensor.

## LessOrEqual - 12¶

### Version¶

• name: LessOrEqual (GitHub)

• domain: main

• since_version: 12

• function: True

• support_level: SupportType.COMMON

• shape inference: False

This version of the operator has been available since version 12.

### Summary¶

Returns the tensor resulted from performing the less_equal logical operation elementwise on the input tensors A and B (with Numpy-style broadcasting support).

#### Function Body¶

The function definition for this operator.

<
domain: "",
opset_import: ["" : 12]
>
LessOrEqual (A, B) => (C)
{
O1 = Less (A, B)
O2 = Equal (A, B)
C = Or (O1, O2)
}


### Inputs¶

• A (heterogeneous) - T:

First input operand for the logical operator.

• B (heterogeneous) - T:

Second input operand for the logical operator.

### Outputs¶

• C (heterogeneous) - T1:

Result tensor.

### Type Constraints¶

• T in ( tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ):

Constrain input types to all numeric tensors.

• T1 in ( tensor(bool) ):

Constrain output to boolean tensor.