Poplar and PopLibs
LogSoftmax.hpp
Go to the documentation of this file.
1// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
6#ifndef popnn_LogSoftmax_hpp
7#define popnn_LogSoftmax_hpp
8
9#include <poplar/Graph.hpp>
10#include <poplar/Program.hpp>
11
12namespace popnn {
13
23 const poplar::DebugContext &debugContext = {});
24
37 const poplar::DebugContext &debugContext = {});
38
39} // end namespace popnn
40
41#endif // popnn_LogSoftmax_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
Functions used in neural networks.
Definition: BatchNorm.hpp:14
void logSoftmaxInPlace(poplar::Graph &graph, poplar::Tensor t, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Update tensor t by computing log of softmax in-place.
poplar::Tensor logSoftmax(poplar::Graph &graph, poplar::Tensor t, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Compute the log of the softmax to tensor t and return the result.