Working end to end example
This commit is contained in:
parent
7c3af1189f
commit
b11a54911d
5 changed files with 31 additions and 10 deletions
|
|
@ -621,8 +621,9 @@ main()
|
|||
spdlog::info("Creating manager");
|
||||
kp::Manager mgr;
|
||||
kp::Tensor tensor({0.0, 1.0, 2.0});
|
||||
std::shared_ptr<kp::Tensor> tensorPtr{&tensor};
|
||||
spdlog::info("Calling manager eval w opcreatetensor");
|
||||
mgr.evalOp<kp::OpCreateTensor>(std::shared_ptr<kp::Tensor>(&tensor));
|
||||
mgr.evalOp<kp::OpCreateTensor>(tensorPtr);
|
||||
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