SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
Public Member Functions | Protected Attributes | List of all members
smaug::ConcatOp< Backend > Class Template Reference

Concatenates N Tensors along a specified axis. More...

#include <concat_op.h>

Detailed Description

template<typename Backend>
class smaug::ConcatOp< Backend >

Concatenates N Tensors along a specified axis.

This has a software-based implementation.

Template Parameters
BackendThe Backend that sets Alignment.

Definition at line 41 of file backend.h.

Public Member Functions

 ConcatOp (const std::string &name, Workspace *workspace)
 
 ConcatOp (const std::string &name, Workspace *workspace, int num, int axis=0)
 Create a ConcatOp. More...
 
void setNumInputs (int num)
 Set the number of Tensors to concatenate.
 
void setConcatAxis (int axis)
 Set the axis along which to concatenate.
 
TensorShape inferOutputShape () const
 
void createOutputTensor ()
 
void createAllTensors () override
 
void run () override
 
int getConcatAxis () const
 

Protected Attributes

int concatAxis
 

Constructor & Destructor Documentation

◆ ConcatOp()

template<typename Backend >
smaug::ConcatOp< Backend >::ConcatOp ( const std::string &  name,
Workspace workspace,
int  num,
int  axis = 0 
)
inline

Create a ConcatOp.

Parameters
nameOperator name
workspaceWorkspace to manage this Operator.
numNumber of tensors to concatenate.
axisAxis/dimension along which to concatenate.

Definition at line 33 of file concat_op.h.


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