Skip to content

Commit

Permalink
[runtime] Removing _subgraphs check (Samsung#760)
Browse files Browse the repository at this point in the history
This removes _subgraphs check inside apply_tensorinfo since the same check is done inside primary_subgraph().

Signed-off-by: Hyun Sik Yoon <[email protected]>
  • Loading branch information
hyunsik-yoon authored May 13, 2020
1 parent f3dbad8 commit dcaec56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/onert/api/src/nnfw_api_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ NNFW_STATUS nnfw_session::apply_tensorinfo(uint32_t index, nnfw_tensorinfo ti)
{
// sanity check
{
if (!_subgraphs || !primary_subgraph() || primary_subgraph()->isBuildingPhase())
if (!primary_subgraph() || primary_subgraph()->isBuildingPhase())
{
std::cerr << "Error during apply_tensorinfo : "
<< "prepare should be run after load_model" << std::endl;
Expand Down

0 comments on commit dcaec56

Please sign in to comment.