Poplar and PopLibs
MeshGrid.hpp
Go to the documentation of this file.
1// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
8#ifndef poplin_MeshGrid_hpp
9#define poplin_MeshGrid_hpp
10
11#include <poplar/Graph.hpp>
12
13namespace poplin {
14
25 float left, float right, size_t count,
26 const poplar::DebugContext &debugContext = {});
27
40std::vector<poplar::Tensor> meshgrid2d(poplar::Graph &graph, poplar::Tensor x,
42
43} // end namespace poplin
44
45#endif // poplin_MeshGrid_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
Class representing device data types.
Definition: Type.hpp:42
Linear algebra functions.
Definition: Cholesky.hpp:14
poplar::Tensor linspace(poplar::Graph &graph, const poplar::Type &type, float left, float right, size_t count, const poplar::DebugContext &debugContext={})
Create a constant variable that contains values equally spaced in the specified closed range [left,...
std::vector< poplar::Tensor > meshgrid2d(poplar::Graph &graph, poplar::Tensor x, poplar::Tensor y)
Create a coordinate grid for each axis by broadcasting the input tensors.