Poplar and PopLibs
SequenceSlice.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 Graphcore Ltd. All rights reserved.
8#ifndef popops_SequenceSlice_hpp
9#define popops_SequenceSlice_hpp
10#include <poplar/Graph.hpp>
11#include <poplar/Program.hpp>
12#include <poputil/DebugInfo.hpp>
13#include <string>
14#include <vector>
15
16namespace poplar {
17class Tensor;
18}
19
20namespace popops {
21
46 const poplar::Tensor &tOut, const poplar::Tensor &tN,
47 const poplar::Tensor &tInOffset,
48 const poplar::Tensor &tOutOffset, bool zeroUnused,
50 const poplar::DebugContext &debugContext = {});
51
52} // end namespace popops
53#endif // popops_DynamicSlice_hpp
Poplibs generic debug info structure.
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
Poplar classes and functions.
Definition: ArrayRef.hpp:14
Common functions, such as elementwise and reductions.
Definition: AllTrue.hpp:15
void sequenceSlice(poplar::Graph &graph, const poplar::Tensor &tIn, const poplar::Tensor &tOut, const poplar::Tensor &tN, const poplar::Tensor &tInOffset, const poplar::Tensor &tOutOffset, bool zeroUnused, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Slice a 2d tensor based on offsets specified by a tensor.