Poplar and PopLibs
OperationDef.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 Graphcore Ltd. All rights reserved.
8#ifndef popops_OperationDef_hpp
9#define popops_OperationDef_hpp
10
11namespace popops {
12
15enum class Operation {
16 ADD,
17 MUL,
18 MIN,
19 MAX,
20 LOGICAL_AND,
21 LOGICAL_OR,
22 SQUARE_ADD,
23 LOG_ADD,
24};
25
26} // End namespace popops
27
28#endif // popops_OperationDef_hpp
Common functions, such as elementwise and reductions.
Definition: AllTrue.hpp:15
Operation
Type of operation to use in a reduction.
Definition: OperationDef.hpp:15
@ LOG_ADD
Reduce using acc = a+log(1+exp(b-a))