22 #ifndef __CONCAT_LAYER_FORWARD_TYPES_H__
23 #define __CONCAT_LAYER_FORWARD_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "data_management/data/homogen_tensor.h"
28 #include "data_management/data/homogen_numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/layer_forward_types.h"
31 #include "algorithms/neural_networks/layers/concat/concat_layer_types.h"
37 namespace neural_networks
66 class DAAL_EXPORT Input :
public layers::forward::Input
69 typedef layers::forward::Input super;
74 Input(
const Input& other);
79 using layers::forward::Input::get;
84 using layers::forward::Input::set;
94 data_management::TensorPtr
get(layers::forward::InputLayerDataId id,
size_t index)
const;
101 LayerDataPtr
get(layers::forward::InputLayerDataId id)
const;
108 void set(layers::forward::InputLayerDataId
id,
const LayerDataPtr &value);
116 void set(layers::forward::InputLayerDataId
id,
const data_management::TensorPtr &value,
size_t index);
125 virtual services::Status addData(
const data_management::TensorPtr &dataTensor,
size_t index) DAAL_C11_OVERRIDE;
132 virtual services::Status eraseInputData() DAAL_C11_OVERRIDE;
141 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
147 LayerInputLayout getLayout() DAAL_C11_OVERRIDE;
154 class DAAL_EXPORT Result :
public layers::forward::Result
157 DECLARE_SERIALIZABLE_CAST(Result);
160 virtual ~Result() {};
165 using layers::forward::Result::get;
170 using layers::forward::Result::set;
177 void set(LayerDataId
id,
const data_management::NumericTablePtr &value);
184 data_management::NumericTablePtr
get(layers::concat::LayerDataId id)
const;
193 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
194 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
203 services::Collection<size_t> getValueSize(
const services::Collection< services::Collection<size_t> > &inputSize,
204 const daal::algorithms::Parameter *parameter,
const int method) DAAL_C11_OVERRIDE;
213 template <
typename algorithmFPType>
214 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
224 virtual services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
225 int method)
const DAAL_C11_OVERRIDE;
229 template<
typename Archive,
bool onDeserialize>
230 services::Status serialImpl(Archive *arch)
232 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
235 typedef services::SharedPtr<Result> ResultPtr;
238 using interface1::Input;
239 using interface1::Result;
240 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::LayerInputLayout
LayerInputLayout
Definition: layer_types.h:57
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::neural_networks::layers::forward::InputLayerDataId
InputLayerDataId
Definition: layer_forward_types.h:73
daal::algorithms::neural_networks::layers::concat::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward concat layer...
Definition: concat_layer_forward_types.h:154
daal::algorithms::neural_networks::layers::concat::LayerDataId
LayerDataId
Identifiers of input objects for the backward concat layer and results for the forward concat layer...
Definition: concat_layer_types.h:64