Poplar and PopLibs
poplar::program::Call Class Reference

A program to perform a function call to a previously stored program. More...

#include <Program.hpp>

Inheritance diagram for poplar::program::Call:
poplar::program::Program

Public Member Functions

 Call (Function f, const DebugContext &debugContext={})
 Call the function. More...
 
 Call (HostFunction f, ArrayRef< Tensor > inputs, ArrayRef< Tensor > outputs, const DebugContext &debugContext={})
 Call a function in the host. More...
 

Detailed Description

A program to perform a function call to a previously stored program.

Constructor & Destructor Documentation

◆ Call() [1/2]

poplar::program::Call::Call ( Function  f,
const DebugContext debugContext = {} 
)

Call the function.

Parameters
fA program that has been added to the graph using Graph::addFunction.
debugContextOptional DebugId and program name.

◆ Call() [2/2]

poplar::program::Call::Call ( HostFunction  f,
ArrayRef< Tensor inputs,
ArrayRef< Tensor outputs,
const DebugContext debugContext = {} 
)

Call a function in the host.

Parameters
fA program that has been added to the graph using Graph::addHostFunction
inputsArray of tensors containing the host function's input
outputsArray of tensors to transfer the result of each host function's output arguments.
debugContextOptional DebugId and program name.

The documentation for this class was generated from the following file: