-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #9322: Split unary.hpp implementation into cpp
- Loading branch information
1 parent
15ff2d1
commit 2b908fb
Showing
6 changed files
with
591 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
ttnn/cpp/ttnn/operations/eltwise/unary/common/unary_op_types.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// SPDX-FileCopyrightText: © 2023 Tenstorrent Inc. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
namespace ttnn::operations::unary { | ||
|
||
// These operations have a corresponding LLK available | ||
enum class UnaryOpType { | ||
EXP, | ||
RECIP, | ||
GELU, | ||
RELU, | ||
SQRT, | ||
SIGMOID, | ||
LOG, | ||
TANH, | ||
LOG2, | ||
LOG10, | ||
SIN, | ||
COS, | ||
ABS, | ||
SIGN, | ||
SQUARE, | ||
EQZ, | ||
NEZ, | ||
GTZ, | ||
LTZ, | ||
GEZ, | ||
LEZ, | ||
RELU_MAX, | ||
RELU_MIN, | ||
POWER, | ||
LEAKY_RELU, | ||
ELU, | ||
EXP2, | ||
HEAVISIDE, | ||
EXPM1, | ||
SIGNBIT, | ||
ASIN, | ||
ACOS, | ||
RSQRT, | ||
RELU6, | ||
ATAN, | ||
ERF, | ||
ERFC, | ||
ISINF, | ||
ISPOSINF, | ||
ISNEGINF, | ||
ISNAN, | ||
LOGICAL_NOT_UNARY, | ||
ISFINITE, | ||
ERFINV, | ||
I0, | ||
TAN, | ||
RSUB, | ||
RDIV, | ||
SILU, | ||
SOFTPLUS, | ||
IDENTITY, | ||
NEG, | ||
ADD_UNARY_SFPU, | ||
SUB_UNARY_SFPU, | ||
MUL_UNARY_SFPU, | ||
DIV_UNARY_SFPU, | ||
IDENTITY_UINT32, | ||
UNARY_NE, | ||
UNARY_GT, | ||
UNARY_LT, | ||
TILED_PROD, | ||
TYPECAST, | ||
BITWISE_XOR, | ||
BITWISE_NOT, | ||
BITWISE_AND, | ||
BITWISE_OR, | ||
RIGHT_SHIFT, | ||
FLOOR, | ||
CEIL, | ||
LEFT_SHIFT, | ||
REMAINDER, | ||
FMOD, | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.