• Home
  • Raw
  • Download

Lines Matching full:runtime

17 #include <executorch/runtime/executor/program.h>
52 std::unique_ptr<runtime::EventTracer> event_tracer = nullptr);
64 std::unique_ptr<runtime::DataLoader> data_loader,
65 std::unique_ptr<runtime::MemoryAllocator> memory_allocator = nullptr,
66 std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr,
67 std::unique_ptr<runtime::EventTracer> event_tracer = nullptr);
80 std::shared_ptr<runtime::Program> program,
81 std::unique_ptr<runtime::MemoryAllocator> memory_allocator = nullptr,
82 std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr,
83 std::unique_ptr<runtime::EventTracer> event_tracer = nullptr);
99 runtime::Error load(
100 const runtime::Program::Verification verification =
101 runtime::Program::Verification::Minimal);
118 inline std::shared_ptr<runtime::Program> program() const { in program()
129 runtime::Result<std::unordered_set<std::string>> method_names();
144 runtime::Error load_method(
157 ET_NODISCARD inline runtime::Error load_forward(
183 runtime::Result<runtime::MethodMeta> method_meta(
198 runtime::Result<std::vector<runtime::EValue>> execute(
200 const std::vector<runtime::EValue>& input_values);
212 ET_NODISCARD inline runtime::Result<std::vector<runtime::EValue>> execute( in execute()
214 const runtime::EValue& input_value) { in execute()
215 return execute(method_name, std::vector<runtime::EValue>{input_value}); in execute()
227 ET_NODISCARD inline runtime::Result<std::vector<runtime::EValue>> execute( in execute()
229 return execute(method_name, std::vector<runtime::EValue>{}); in execute()
243 ET_NODISCARD inline runtime::Result<runtime::EValue> get( in get()
245 const std::vector<runtime::EValue>& input_values) { in get()
248 return runtime::Error::InvalidArgument; in get()
263 ET_NODISCARD inline runtime::Result<runtime::EValue> get( in get()
265 const runtime::EValue& input_value) { in get()
266 return get(method_name, std::vector<runtime::EValue>{input_value}); in get()
278 ET_NODISCARD inline runtime::Result<runtime::EValue> get( in get()
280 return get(method_name, std::vector<runtime::EValue>{}); in get()
292 ET_NODISCARD inline runtime::Result<std::vector<runtime::EValue>> forward( in forward()
293 const std::vector<runtime::EValue>& input_values) { in forward()
306 ET_NODISCARD inline runtime::Result<std::vector<runtime::EValue>> forward( in forward()
307 const runtime::EValue& input_value) { in forward()
308 return forward(std::vector<runtime::EValue>{input_value}); in forward()
318 ET_NODISCARD inline runtime::Result<std::vector<runtime::EValue>> forward() { in forward()
319 return forward(std::vector<runtime::EValue>{}); in forward()
332 runtime::Error set_input(
334 const runtime::EValue& input_value,
346 inline runtime::Error set_input( in set_input()
347 const runtime::EValue& input_value, in set_input()
361 runtime::Error set_inputs(
363 const std::vector<runtime::EValue>& input_values);
373 inline runtime::Error set_inputs( in set_inputs()
374 const std::vector<runtime::EValue>& input_values) { in set_inputs()
391 runtime::Error set_output(
393 runtime::EValue output_value,
408 inline runtime::Error set_output(
409 runtime::EValue output_value,
422 inline runtime::EventTracer* event_tracer() const { in event_tracer()
429 std::vector<runtime::Span<uint8_t>> planned_spans;
430 std::unique_ptr<runtime::HierarchicalAllocator> planned_memory;
431 std::unique_ptr<runtime::MemoryManager> memory_manager;
432 std::unique_ptr<runtime::Method> method;
433 std::vector<runtime::EValue> inputs;
439 std::shared_ptr<runtime::Program> program_;
440 std::unique_ptr<runtime::DataLoader> data_loader_;
441 std::unique_ptr<runtime::MemoryAllocator> memory_allocator_;
442 std::unique_ptr<runtime::MemoryAllocator> temp_allocator_;
443 std::unique_ptr<runtime::EventTracer> event_tracer_;