Working end to end example

This commit is contained in:
Alejandro Saucedo 2020-08-19 21:10:53 +01:00
parent 7c3af1189f
commit b11a54911d
5 changed files with 31 additions and 10 deletions

View file

@ -37,8 +37,13 @@ class OpBase
SPDLOG_DEBUG("Compute OpBase destructor started");
}
virtual void init(std::shared_ptr<Tensor> tensor, ...) = 0;
virtual void record() = 0;
virtual void init(std::shared_ptr<Tensor> tensor, ...) {
SPDLOG_DEBUG("Kompute OpBase init called");
}
virtual void record() {
SPDLOG_DEBUG("Kompute OpBase record called");
}
protected:
std::shared_ptr<vk::PhysicalDevice> mPhysicalDevice;