Kompute
Public Member Functions | List of all members
kp::OpMult Class Reference

#include <OpMult.hpp>

Inheritance diagram for kp::OpMult:
Inheritance graph
[legend]
Collaboration diagram for kp::OpMult:
Collaboration graph
[legend]

Public Member Functions

 OpMult (std::vector< std::shared_ptr< Tensor >> tensors, std::shared_ptr< Algorithm > algorithm)
 
 ~OpMult () override
 
- Public Member Functions inherited from kp::OpAlgoDispatch
template<typename T = float>
 OpAlgoDispatch (const std::shared_ptr< kp::Algorithm > &algorithm, const std::vector< T > &pushConstants={})
 
virtual ~OpAlgoDispatch () override
 
virtual void record (const vk::CommandBuffer &commandBuffer) override
 
virtual void preEval (const vk::CommandBuffer &commandBuffer) override
 
virtual void postEval (const vk::CommandBuffer &commandBuffer) override
 
- Public Member Functions inherited from kp::OpBase
virtual ~OpBase ()
 

Detailed Description

Operation that performs multiplication on two tensors and outpus on third tensor.

Constructor & Destructor Documentation

◆ OpMult()

kp::OpMult::OpMult ( std::vector< std::shared_ptr< Tensor >>  tensors,
std::shared_ptr< Algorithm algorithm 
)
inline

Default constructor with parameters that provides the bare minimum requirements for the operations to be able to create and manage their sub-components.

Parameters
tensorsTensors that are to be used in this operation
algorithmAn algorithm that will be overridden with the OpMult shader data and the tensors provided which are expected to be 3

◆ ~OpMult()

kp::OpMult::~OpMult ( )
inlineoverride

Default destructor, which is in charge of destroying the algorithm components but does not destroy the underlying tensors


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