Poplar and PopLibs
UpdateScalarInRows.hpp
Go to the documentation of this file.
1// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
8#ifndef popops_UpdateScalarInRows_hpp
9#define popops_UpdateScalarInRows_hpp
10#include <poplar/Graph.hpp>
11#include <poplar/Program.hpp>
12#include <popops/ExprOp.hpp>
13
14#include <string>
15
16namespace popops {
17
44 const poplar::Tensor &indices,
46 const poplar::DebugContext &debugContext = {});
47
48} // namespace popops
49
50#endif // popops_UpdateScalarInRows_hpp
Operators used in expressions with elements of tensors.
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
void updateScalarInRows(poplar::Graph &graph, const poplar::Tensor &params, const poplar::Tensor &indices, poplar::program::Sequence &program, const poplar::DebugContext &debugContext={})
Update in-place one scalar per row of the tensor params.