Skip to content

Commit b203bbf

Browse files
gongchensuPanZezhong1725
authored andcommitted
Issue/887 - Refactor: consolidate binary/unary operator headers and tests into unified files
1 parent 37667bf commit b203bbf

74 files changed

Lines changed: 1401 additions & 4238 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/infiniop.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
#include "infiniop/ops/quant/per_channel_quant_int8.h"
6868
#include "infiniop/ops/quant/per_tensor_quant_int8.h"
6969
#include "infiniop/ops/random_sample.h"
70-
#include "infiniop/ops/reciprocal.h"
7170
#include "infiniop/ops/rearrange.h"
7271
#include "infiniop/ops/reciprocal.h"
7372
#include "infiniop/ops/relu.h"

include/infiniop/ops/abs.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/infiniop/ops/acosh.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/infiniop/ops/atan.h

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#ifndef __INFINIOP_BINARY_OPS_API_H__
2+
#define __INFINIOP_BINARY_OPS_API_H__
3+
4+
#include "binary_op_api.h"
5+
6+
/**
7+
* @brief Unified API declarations for all binary operators.
8+
*
9+
* This header contains API declarations for all binary operators in a single file,
10+
* eliminating the need for individual header files for each operator.
11+
*
12+
* All binary operator APIs are declared here:
13+
* - div, pow, mod, max, min
14+
*/
15+
16+
// Declare all binary operator APIs
17+
BINARY_OP_API_DECLARE(div, Div)
18+
BINARY_OP_API_DECLARE(pow, Pow)
19+
BINARY_OP_API_DECLARE(mod, Mod)
20+
BINARY_OP_API_DECLARE(max, Max)
21+
BINARY_OP_API_DECLARE(min, Min)
22+
23+
#endif // __INFINIOP_BINARY_OPS_API_H__

include/infiniop/ops/ceil.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/infiniop/ops/cos.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/infiniop/ops/cosh.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/infiniop/ops/div.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/infiniop/ops/erf.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)