Updated typos
This commit is contained in:
parent
f8859c7fd6
commit
150e986982
4 changed files with 4 additions and 3 deletions
1
Makefile
1
Makefile
|
|
@ -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++ \
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue