mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Fix usage of TF_LITE_ENSURE_MSG in constructor
This commit is contained in:
parent
fc407649b8
commit
b432db5806
|
|
@ -151,11 +151,7 @@ class SubgraphGuard {
|
|||
SubgraphGuard(TfLiteContext* context, bool* is_subgraph_in_use)
|
||||
: is_subgraph_in_use_(is_subgraph_in_use) {
|
||||
if (*is_subgraph_in_use_) {
|
||||
TF_LITE_ENSURE_MSG(
|
||||
context, false,
|
||||
"Subgraph is already in use. Using an interpreter or a subgraph in "
|
||||
"multiple threads is not supported. Recursion in the graph is not "
|
||||
"supported.");
|
||||
context->ReportError(context, "Subgraph is already in use.");
|
||||
status_ = kTfLiteError;
|
||||
} else {
|
||||
*is_subgraph_in_use_ = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user