Poplar and PopLibs
SelectScalarFromRows.hpp
Go to the documentation of this file.
1// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
8#ifndef popops_SelectScalarInRows_hpp
9#define popops_SelectScalarInRows_hpp
10#include <poplar/Graph.hpp>
11#include <poplar/Program.hpp>
12
13namespace popops {
14
40 const poplar::Tensor &indices,
42 const poplar::DebugContext &debugContext = {});
43
44} // namespace popops
45
46#endif // popops_SelectScalarInRows_hpp
DebugContext gathers the common external parameters of the context of an operation.
Definition: DebugContext.hpp:221
This class represents a graph program to be executed on the IPU.
Definition: Graph.hpp:52
A reference to a subset of tensor elements.
Definition: Tensor.hpp:38
Program that executes a sequence of programs.
Definition: Program.hpp:77
Common functions, such as elementwise and reductions.
Definition: AllTrue.hpp:15
poplar::Tensor selectScalarFromRows(poplar::Graph &graph, const poplar::Tensor &params, const poplar::Tensor &indices, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
For each row in the 2D tensor params, select a single scalar value.