File tree Expand file tree Collapse file tree
packages/react-native-executorch/common/rnexecutorch/host_objects Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88#include < ReactCommon/CallInvoker.h>
99
10- #include < rnexecutorch/Log.h>
1110#include < rnexecutorch/host_objects/JSTensorViewOut.h>
1211#include < rnexecutorch/host_objects/JsiConversions.h>
1312#include < rnexecutorch/jsi/JsiHostObject.h>
@@ -88,8 +87,8 @@ template <typename Model> class ModelHostObject : public JsiHostObject {
8887 std::thread ([this , promise,
8988 argsConverted = std::move (argsConverted)]() {
9089 try {
91- auto result =
92- std::apply ( std::bind_front (FnPtr, model), argsConverted);
90+ auto result = std::apply ( std::bind_front (FnPtr, model),
91+ std::move ( argsConverted) );
9392 // The result is copied. It should either be quickly copiable,
9493 // or passed with a shared_ptr.
9594 callInvoker->invokeAsync ([promise,
You can’t perform that action at this time.
0 commit comments