Updated the examples

This commit is contained in:
Alejandro Saucedo 2021-02-09 22:15:07 +00:00
parent 3c486ebf72
commit 48f041d9f3
5 changed files with 8 additions and 32 deletions

View file

@ -42,14 +42,7 @@ void KomputeModelML::train(std::vector<float> yData, std::vector<float> xIData,
kp::Manager mgr;
{
std::shared_ptr<kp::Sequence> sqTensor =
mgr.sequence();
sqTensor->begin();
sqTensor->record<kp::OpTensorCreate>(params);
sqTensor->end();
sqTensor->eval();
mgr.rebuild(params);
std::shared_ptr<kp::Sequence> sq = mgr.sequence();