48 #ifndef __SPLIT_LAYER_FORWARD_TYPES_H__ 49 #define __SPLIT_LAYER_FORWARD_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_forward_types.h" 56 #include "algorithms/neural_networks/layers/split/split_layer_types.h" 62 namespace neural_networks
86 enum ResultLayerDataId
100 class DAAL_EXPORT Input :
public layers::forward::Input
103 typedef layers::forward::Input super;
108 Input(
const Input& other);
113 using layers::forward::Input::get;
118 using layers::forward::Input::set;
127 class DAAL_EXPORT Result :
public layers::forward::Result
130 DECLARE_SERIALIZABLE_CAST(Result);
133 virtual ~Result() {};
138 using layers::forward::Result::get;
143 using layers::forward::Result::set;
151 data_management::TensorPtr
get(ResultLayerDataId id,
size_t index)
const;
158 LayerDataPtr
get(ResultLayerDataId id)
const;
165 void set(ResultLayerDataId id,
const LayerDataPtr &value);
173 void set(ResultLayerDataId id,
const data_management::TensorPtr &value,
size_t index);
179 LayerResultLayout getLayout() DAAL_C11_OVERRIDE;
186 virtual data_management::TensorPtr getValue(
size_t index)
const DAAL_C11_OVERRIDE;
196 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
205 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
206 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
215 services::Collection< services::Collection<size_t> > getValueCollectionSize(
const services::Collection<size_t> &inputSize,
216 const daal::algorithms::Parameter *parameter,
const int method) DAAL_C11_OVERRIDE;
226 template <
typename algorithmFPType>
227 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
231 template<
typename Archive,
bool onDeserialize>
232 services::Status serialImpl(Archive *arch)
234 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
237 typedef services::SharedPtr<Result> ResultPtr;
239 using interface1::Input;
240 using interface1::Result;
241 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::forward::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::forward::interface1::Result::set
void set(ResultId id, const data_management::TensorPtr &ptr)
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::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the layer algorithm...
Definition: layer_forward_types.h:241
daal::algorithms::neural_networks::layers::split::forward::valueCollection
Definition: split_layer_forward_types.h:88
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::neural_networks::layers::split::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward split layer...
Definition: split_layer_forward_types.h:127
daal::services::interface1::Collection
Class that implements functionality of the Collection container.
Definition: collection.h:69
daal::algorithms::neural_networks::layers::split::forward::ResultLayerDataId
ResultLayerDataId
Definition: split_layer_forward_types.h:86