ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Entry.cpp File Reference
#include "ConvBackend.h"
#include <nnsuite/conv/RandomModel.h>
#include <nnkit/Backend.h>
#include <nnkit/CmdlineArguments.h>
#include <memory>
#include <chrono>
#include <iostream>

Go to the source code of this file.

Functions

std::unique_ptr< nnkit::Backendmake_backend (const nnkit::CmdlineArguments &args)
 

Function Documentation

◆ make_backend()

std::unique_ptr< nnkit::Backend > make_backend ( const nnkit::CmdlineArguments args)

Definition at line 28 of file Entry.cpp.

29{
30 // Set random seed
31 int32_t seed = std::chrono::system_clock::now().time_since_epoch().count();
32
33 if (args.size() > 0)
34 {
35 seed = std::stoi(args.at(0), nullptr, 0);
36 }
37
38 std::cout << "SEED: " << seed << std::endl;
39
41
42 return std::make_unique<ConvBackend>(model);
43}
args
Definition infer.py:21