48 #ifndef __CONCAT_LAYER_BACKWARD_TYPES_H__ 49 #define __CONCAT_LAYER_BACKWARD_TYPES_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/tensor.h" 53 #include "data_management/data/homogen_tensor.h" 54 #include "services/daal_defines.h" 55 #include "algorithms/neural_networks/layers/layer_backward_types.h" 56 #include "algorithms/neural_networks/layers/concat/concat_layer_types.h" 62 namespace neural_networks
92 class DAAL_EXPORT Input :
public layers::backward::Input
95 typedef layers::backward::Input super;
100 Input(
const Input& other);
107 using layers::backward::Input::get;
112 using layers::backward::Input::set;
119 data_management::NumericTablePtr
get(layers::concat::LayerDataId id)
const;
126 void set(layers::concat::LayerDataId id,
const data_management::NumericTablePtr &value);
135 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
142 class DAAL_EXPORT Result :
public layers::backward::Result
145 DECLARE_SERIALIZABLE_CAST(Result);
148 virtual ~Result() {};
153 using layers::backward::Result::get;
158 using layers::backward::Result::set;
166 data_management::TensorPtr
get(layers::backward::ResultLayerDataId id,
size_t index)
const;
174 void set(layers::backward::ResultLayerDataId id,
const data_management::TensorPtr &value,
size_t index);
181 virtual data_management::TensorPtr getGradient(
size_t index)
const DAAL_C11_OVERRIDE;
191 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
201 template <
typename algorithmFPType>
202 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
208 virtual LayerResultLayout getLayout()
const DAAL_C11_OVERRIDE;
212 template<
typename Archive,
bool onDeserialize>
213 services::Status serialImpl(Archive *arch)
215 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
218 size_t getElem(data_management::NumericTablePtr nt,
size_t index)
const;
220 typedef services::SharedPtr<Result> ResultPtr;
223 using interface1::Input;
224 using interface1::Result;
225 using interface1::ResultPtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
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:90
daal::algorithms::neural_networks::layers::backward::interface1::Result::get
data_management::TensorPtr get(ResultId id) const
daal::algorithms::neural_networks::layers::LayerResultLayout
LayerResultLayout
Definition: layer_types.h:94
daal::algorithms::neural_networks::layers::backward::ResultLayerDataId
ResultLayerDataId
Definition: layer_backward_types.h:120
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::neural_networks::layers::concat::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward concat layer...
Definition: concat_layer_backward_types.h:142
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::neural_networks::layers::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the layer algorithm...
Definition: layer_backward_types.h:224
daal::algorithms::neural_networks::layers::backward::interface1::Result::set
void set(ResultId id, const data_management::TensorPtr &ptr)