Updated typos

This commit is contained in:
Alejandro Saucedo 2020-08-18 21:52:16 +01:00
parent f8859c7fd6
commit 150e986982
4 changed files with 4 additions and 3 deletions

View file

@ -15,6 +15,7 @@ SCMP=/c/VulkanSDK/1.2.141.2/Bin32/glslangValidator.exe
build: build_shaders
$(CC) \
src/* \
-w \
-std=c++17 \
-g -fexceptions -fPIC \
-static-libgcc -static-libstdc++ \

View file

@ -32,7 +32,7 @@ class Sequence
void record(TArgs&&... args)
{
SPDLOG_DEBUG("Kompute Sequence record");
T op(this->mCommandBuffer);
T op(this->mPhysicalDevice, this->mDevice, this->mCommandBuffer);
op.init(std::forward<TArgs>(args)...);
op.record();
}

View file

@ -39,7 +39,7 @@ class Tensor
// Getter functions
std::vector<uint32_t> data();
uint32_t size();
std::vector<uint32_t> shape();
std::array<uint32_t, KP_MAX_DIM_SIZE> shape();
TensorTypes tensorType();
bool isInit();

View file

@ -623,7 +623,7 @@ main()
std::vector<uint32_t> data = {0.0, 1.0, 2.0};
kp::Tensor tensor({data.size()});
spdlog::info("Calling manager eval w opcreatetensor");
mgr.evalOp<kp::OpCreateTensor>(&tensor, data);
mgr.evalOp<kp::OpCreateTensor>(std::shared_ptr<kp::Tensor>(&tensor), data);
spdlog::info("Called manager eval success");
std::vector<uint32_t> outData = tensor.data();
spdlog::info("Output data: {}", outData);