class_docstr: Model isn't used in composing due to same performance with GRU. Saved for further experiments
class_docstr_tok: ["Model","is","n't","used","in","composing","due","to","same","performance","with","GRU",".","Saved","for","further","experiments"]
code: def forward(self, x):
      if self.hidden_cell is None:
          raise Exception
      x = self.conv_block1(x)
      x = self.conv_block2(x)
      x = x.permute(2, 0, 1)
      out, self.hidden_cell = self.lstm(x, self.hidden_cell)
      hidden_cat = torch.cat(
          [self.hidden_cell[0], self.hidden_cell[1]], dim=2
      )
      predictions = self.linear(hidden_cat)
  
      return predictions
  
imports: import numpy
  from golem.utilities.requirements_notificator import warn_requirement
  from fedot.core.data.data import InputData
  from fedot.core.operations.evaluation.operation_implementations.implementation_interfaces import ModelImplementation
  from fedot.core.operations.operation_parameters import OperationParameters
  from fedot.core.repository.dataset_types import DataTypesEnum
label_desc: Use image node_id 4 for calling the CLSTMNetwork obj's underlying member method code with example usage: obj.forward(x) and returns: predictions