Fix broken code after cherrypick

This commit is contained in:
Mihai Maruseac 2021-06-03 13:59:56 -07:00 committed by GitHub
parent 93bde75f29
commit 8badcc59dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -711,6 +711,10 @@ class Subgraph {
// A map of resources. Owned by interpreter and shared by multiple subgraphs.
resource::ResourceMap* resources_ = nullptr;
// Whether the subgraph is currently in use (e.g. running the `Invoke`
// or `AllocateTensors` functions).
bool is_subgraph_in_use_ = false;
};
} // namespace impl
@ -721,10 +725,5 @@ using Subgraph = tflrt::Subgraph;
using Subgraph = impl::Subgraph;
#endif
// Whether the subgraph is currently in use (e.g. running the `Invoke`
// or `AllocateTensors` functions).
bool is_subgraph_in_use_ = false;
};
} // namespace tflite
#endif // TENSORFLOW_LITE_CORE_SUBGRAPH_H_