ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Entry.cpp File Reference
#include "ConvBackend.h"
#include <nnsuite/conv/RandomModel.h>
#include <nnkit/CmdlineArguments.h>
#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 25 of file Entry.cpp.

26{
27 // Set random seed
28 int32_t seed = std::chrono::system_clock::now().time_since_epoch().count();
29
30 if (args.size() > 0)
31 {
32 seed = std::stoi(args.at(0), nullptr, 0);
33 }
34
35 std::cout << "SEED: " << seed << std::endl;
36
38
39 return ConvBackend::create(model);
40}
args
Definition infer.py:21
static std::unique_ptr< nnkit::Backend > create(const nnsuite::conv::Model &)

References ConvBackend::create().