Poplar and PopLibs
GatherStatistics.hpp
Go to the documentation of this file.
1// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
8#ifndef popops_GatherStatistics_hpp
9#define popops_GatherStatistics_hpp
10
11#include <poplar/Graph.hpp>
12#include <poplar/OptionFlags.hpp>
13#include <poplar/Program.hpp>
14#include <string>
15
16namespace popops {
17
70 const poplar::Tensor &levels, bool absoluteOfInput,
72 const poplar::DebugContext &debugContext = {},
73 const poplar::OptionFlags &options = {});
74
122void histogram(poplar::Graph &graph, const poplar::Tensor &input,
123 poplar::Tensor &output, bool updateOutput,
124 const poplar::Tensor &levels, bool absoluteOfInput,
126 const poplar::DebugContext &debugContext = {},
127 const poplar::OptionFlags &options = {});
128} // namespace popops
129
130#endif // popops_GatherStatistics_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 set of option/value string flags to be used in various APIs.
Definition: OptionFlags.hpp:24
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 histogram(poplar::Graph &graph, const poplar::Tensor &input, const poplar::Tensor &levels, bool absoluteOfInput, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={}, const poplar::OptionFlags &options={})
Gather a histogram representing the statistics of the input tensor.