diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-11-14 15:54:26 +0000 |
---|---|---|
committer | Anthony Barbier <Anthony.barbier@arm.com> | 2018-11-15 09:43:21 +0000 |
commit | 0cc37c31a36e7b146cf9640ad69925d7c06b71b4 (patch) | |
tree | 64bea25de0d16a4e640c88b99c491ace7c5a6edf /src/runtime/CL/functions | |
parent | 0e37b5c0e2caaaf18117ec3b1cecff6a85c184f3 (diff) | |
download | ComputeLibrary-0cc37c31a36e7b146cf9640ad69925d7c06b71b4.tar.gz |
COMPMID-1451: Fix the shape of scratch_buffer in case of CIFG
In case of CIFG optimisation scratch buffer should have a size of
[batch_size, num_units * 3] else [batch_size, num_units * 4].
Change-Id: I43e46f7b52e791472f1196f36e9142240ba76c5c
Diffstat (limited to 'src/runtime/CL/functions')
-rw-r--r-- | src/runtime/CL/functions/CLLSTMLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/CL/functions/CLLSTMLayer.cpp b/src/runtime/CL/functions/CLLSTMLayer.cpp index 245016efcb..a89c4e3dbf 100644 --- a/src/runtime/CL/functions/CLLSTMLayer.cpp +++ b/src/runtime/CL/functions/CLLSTMLayer.cpp @@ -282,7 +282,7 @@ void CLLSTMLayer::configure(const ICLTensor *input, // Vector for holding the tensors to store in scratch buffer std::vector<ICLTensor *> scratch_inputs; - if(lstm_params.has_cifg_opt()) + if(!lstm_params.has_cifg_opt()) { scratch_inputs.emplace_back(&_input_gate_out1); } @@ -444,7 +444,7 @@ Status CLLSTMLayer::validate(const ITensorInfo *input, // Validate scratch concatenation std::vector<ITensorInfo *> inputs_vector_info_raw; - if(lstm_params.has_cifg_opt()) + if(!lstm_params.has_cifg_opt()) { inputs_vector_info_raw.push_back(&input_gate); } |