mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
code refactoring
This commit is contained in:
@@ -347,8 +347,6 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
{
|
||||
public:
|
||||
|
||||
Ptr<LayerInfo> data;
|
||||
|
||||
/** @brief Computes and sets internal parameters according to inputs, outputs and blobs.
|
||||
* @deprecated Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
|
||||
* @param[in] input vector of already allocated input blobs
|
||||
|
||||
@@ -794,7 +794,6 @@ public:
|
||||
if (!conv || !backendCtx || !conv->cudaSupported())
|
||||
return Ptr<Layer>();
|
||||
Ptr<CUDAConv2Layer> layer(new CUDAConv2Layer(conv, backendCtx));
|
||||
layer->data = data;
|
||||
layer->name = conv->name;
|
||||
layer->type = conv->type;
|
||||
layer->inputs = conv->inputs;
|
||||
|
||||
@@ -24,7 +24,6 @@ public:
|
||||
if (!impl || !backendCtx || !impl->supportBackend(DNN_BACKEND_CUDA))
|
||||
return Ptr<Layer>(); // unsupported -> CPU fallback
|
||||
Ptr<CUDALegacyExec> e(new CUDALegacyExec(impl, backendCtx));
|
||||
e->data = data;
|
||||
e->name = impl->name;
|
||||
e->type = impl->type;
|
||||
e->inputs = impl->inputs;
|
||||
|
||||
Reference in New Issue
Block a user