ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Backend.cpp File Reference
#include "nnkit/support/onnx/Backend.h"
#include <nnkit/CmdlineArguments.h>
#include <memory>
#include <cassert>

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 24 of file Backend.cpp.

25{
26 assert(args.size() == 1); // args.at[0] : onnx file
27
28 return std::make_unique<::nnkit::support::onnx::Backend>(args.at(0));
29}
args
Definition infer.py:21