Operation

#include <popops/Operation.hpp>

Read/write types of operations used in a reduce.

namespace popops

Common functions, such as elementwise and reductions.

Functions

std::istream &operator>>(std::istream &is, Operation &op)

Parse token from input stream is to op.

Valid input values are the stringified enumerations, for example “ADD” or “MUL”.

Returns

The original input stream.

std::ostream &operator<<(std::ostream &os, const Operation &op)

Write op to output stream os.

The value written is the stringified enumeration, for example “ADD” or “MUL”.

Returns

The original output stream.