Compute Library
 23.05
Operator Class Reference

An operator for the sole purpose of validating fusion. More...

#include <GpuOperatorGroup.h>

Public Member Functions

 Operator ()=default
 Default constructor. More...
 
OperatorId id () const
 Get Operator Id. More...
 
GpuOperatorType operator_type () const
 Get operator type. More...
 
ArgumentPack< ITensorInfotensors () const
 Get tensor arguments. More...
 

Friends

class GpuOperatorGroup
 

Detailed Description

An operator for the sole purpose of validating fusion.

Definition at line 43 of file GpuOperatorGroup.h.

Constructor & Destructor Documentation

◆ Operator()

Operator ( )
default

Default constructor.

Member Function Documentation

◆ id()

OperatorId id ( ) const

Get Operator Id.

Definition at line 56 of file GpuOperatorGroup.cpp.

Referenced by GpuOperatorGroup::add_operator(), and GpuOperatorGroup::try_add_operator().

57 {
58  return _id;
59 }

◆ operator_type()

GpuOperatorType operator_type ( ) const

Get operator type.

Definition at line 61 of file GpuOperatorGroup.cpp.

Referenced by GpuOperatorGroup::try_add_operator().

62 {
63  return _operator_type;
64 }

◆ tensors()

ArgumentPack< ITensorInfo > tensors ( ) const

Get tensor arguments.

Definition at line 66 of file GpuOperatorGroup.cpp.

Referenced by GpuOperatorGroup::add_operator(), and GpuOperatorGroup::try_add_operator().

67 {
68  return _tensors;
69 }

Friends And Related Function Documentation

◆ GpuOperatorGroup

friend class GpuOperatorGroup
friend

Definition at line 54 of file GpuOperatorGroup.h.


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