File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -529,15 +529,14 @@ TfLiteStatus Subgraph::AddNodeWithParameters(
529529 const std::vector<int >& inputs, const std::vector<int >& outputs,
530530 const char * init_data, size_t init_data_size, void * builtin_data,
531531 const TfLiteRegistration* registration, int * node_index) {
532+ std::unique_ptr<void , decltype (free)*> builtin_data_deleter (builtin_data,
533+ free);
532534 if (state_ == kStateInvokableAndImmutable ) {
533535 ReportError (" AddNodeWithParameters is disallowed when graph is immutable." );
534536 return kTfLiteError ;
535537 }
536538 state_ = kStateUninvokable ;
537539
538- std::unique_ptr<void , decltype (free)*> builtin_data_deleter (builtin_data,
539- free);
540-
541540 TF_LITE_ENSURE_OK (context_, CheckTensorIndices (" node inputs" , inputs.data (),
542541 inputs.size ()));
543542 TF_LITE_ENSURE_OK (
You can’t perform that action at this time.
0 commit comments