48 #ifndef __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_BACKWARD_TYPES_H__ 49 #define __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_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/loss/loss_layer_backward_types.h" 57 #include "algorithms/neural_networks/layers/loss/logistic_cross_layer_types.h" 63 namespace neural_networks
69 namespace logistic_cross
91 class DAAL_EXPORT Input :
public loss::backward::Input
94 typedef loss::backward::Input super;
99 Input(
const Input& other);
106 using loss::backward::Input::get;
111 using loss::backward::Input::set;
118 data_management::TensorPtr
get(LayerDataId id)
const;
125 void set(LayerDataId id,
const data_management::TensorPtr &value);
134 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
142 class DAAL_EXPORT Result :
public loss::backward::Result
145 DECLARE_SERIALIZABLE_CAST(Result);
149 virtual ~Result() {};
154 using loss::backward::Result::get;
159 using loss::backward::Result::set;
169 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
179 template <
typename algorithmFPType>
180 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
184 template<
typename Archive,
bool onDeserialize>
185 services::Status serialImpl(Archive *arch)
187 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
190 typedef services::SharedPtr<Result> ResultPtr;
193 using interface1::Input;
194 using interface1::Result;
195 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::loss::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward loss layer...
Definition: loss_layer_backward_types.h:124
daal::algorithms::neural_networks::layers::loss::logistic_cross::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward logistic cro...
Definition: logistic_cross_layer_backward_types.h:142
daal::algorithms::neural_networks::layers::backward::interface1::Result::get
data_management::TensorPtr get(ResultId id) const
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::math::abs::value
Definition: abs_types.h:112
daal::algorithms::neural_networks::layers::loss::logistic_cross::LayerDataId
LayerDataId
Identifiers of input objects for the backward logistic cross-entropy layer and results for the forwar...
Definition: logistic_cross_layer_types.h:88
daal::algorithms::neural_networks::layers::backward::interface1::Result::set
void set(ResultId id, const data_management::TensorPtr &ptr)