1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include "ie_icnn_network.hpp"
13 namespace InferenceEngine {
17 * Try to detect LSTM Sequence pattern inside TI and convert it
19 * @param net network to modify
20 * @return true if all Tensor iterator was converted
22 INFERENCE_ENGINE_API_CPP(bool) CombineRNNSeq(ICNNNetwork &net);
25 * Unroll all present Tensor Iterators
27 * @param net network to modify
28 * @return true if all Tensor iterator was unrolled successfully
30 INFERENCE_ENGINE_API_CPP(bool) UnrollTI(ICNNNetwork &net);
33 * Unroll all RNN specific layers by predicate
35 * Will be applied to all RNNSeq and RNNCell layers
37 * @param net network to modify
38 * @param pred predicate to mark layer to unroll
39 * @return true if all RNN layers was unrolled successfully
41 INFERENCE_ENGINE_API_CPP(bool) UnrollRNN_if(ICNNNetwork &net,
42 std::function<bool(const RNNCellBase&)> pred);
44 } // namespace NetPass
45 } // namespace InferenceEngine