Reformatted

This commit is contained in:
Alejandro Saucedo 2020-08-20 05:45:54 +01:00
parent 8aa7843f0e
commit 0d18dc50e6
13 changed files with 166 additions and 95 deletions

View file

@ -6,20 +6,21 @@
namespace kp {
OpMult::OpMult() {
OpMult::OpMult()
{
SPDLOG_DEBUG("Kompute OpMult constructor base");
}
OpMult::OpMult(std::shared_ptr<vk::PhysicalDevice> physicalDevice,
std::shared_ptr<vk::Device> device,
std::shared_ptr<vk::CommandBuffer> commandBuffer)
OpMult::OpMult(std::shared_ptr<vk::PhysicalDevice> physicalDevice,
std::shared_ptr<vk::Device> device,
std::shared_ptr<vk::CommandBuffer> commandBuffer)
: OpBase(physicalDevice, device, commandBuffer)
{
SPDLOG_DEBUG("Kompute OpMult constructor with params");
}
OpMult::~OpMult() {
OpMult::~OpMult()
{
SPDLOG_DEBUG("Kompute OpMult destructor started");
}
@ -29,18 +30,17 @@ OpMult::init(std::vector<std::shared_ptr<Tensor>> tensors)
SPDLOG_DEBUG("Kompute OpMult init called");
if (tensors.size() < 2) {
throw std::runtime_error("Kompute OpMult called with less than 1 tensor");
throw std::runtime_error(
"Kompute OpMult called with less than 1 tensor");
} else if (tensors.size() > 2) {
spdlog::warn("Kompute OpMult called with more than 2 tensor");
}
}
void
OpMult::record()
{
SPDLOG_DEBUG("Kompute OpMult record called");
}
}