diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2022-08-30 14:27:10 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2022-09-06 11:30:05 +0100 |
commit | d93603325ac3f2911ee24f8a98a5a79caf29c0ca (patch) | |
tree | 45c6d685659148ea874a71d073c5ca666e333dfa /python/pyarmnn/src | |
parent | 06875f4eb0ee3ece2afbeac9d66d45d5f139db51 (diff) | |
download | armnn-d93603325ac3f2911ee24f8a98a5a79caf29c0ca.tar.gz |
IVGCVSW-7006 Remove deprecated code due to be removed in 22.08
* AddConv and AddDWConv with weights and bias
* ResizeBilinearDescriptor
* b,blacklist option in accuracy tool
!android-nn-driver:8172
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Ibbc04fd18be7f938b11590bf67cd7af103cb4d99
Diffstat (limited to 'python/pyarmnn/src')
-rw-r--r-- | python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i b/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i index 55b6795c90..f91bccc449 100644 --- a/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i +++ b/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i @@ -1179,25 +1179,15 @@ public: Args: convolution2dDescriptor (Convolution2dDescriptor): Description of the 2D convolution layer. - weights (ConstTensor): Tensor for the weights data. - biases (ConstTensor): Optional tensor for the bias data. If specified, must match the output tensor shape. name (str): Optional name for the layer. Returns: IConnectableLayer: Interface for configuring the layer. ") AddConvolution2dLayer; armnn::IConnectableLayer* AddConvolution2dLayer(const armnn::Convolution2dDescriptor& convolution2dDescriptor, - const armnn::ConstTensor& weights, - armnn::ConstTensor* biases = nullptr, const char* name = nullptr) { - if (biases) { - return $self->AddConvolution2dLayer(convolution2dDescriptor, weights, - armnn::Optional<armnn::ConstTensor>(*biases), name); - } else { - return $self->AddConvolution2dLayer(convolution2dDescriptor, weights, - armnn::Optional<armnn::ConstTensor>(), name); - } + return $self->AddConvolution2dLayer(convolution2dDescriptor, name); } %feature("docstring", @@ -1206,8 +1196,6 @@ public: Args: convolution2dDescriptor (DepthwiseConvolution2dDescriptor): Description of the 2D depthwise convolution layer. - weights (ConstTensor): Tensor for the weights. Expected format: [channelMultiplier, inputChannels, height, width]. - biases (ConstTensor): Optional tensor for the bias data. If specified, must match the output tensor shape. name (str): Optional name for the layer. Returns: @@ -1216,19 +1204,9 @@ public: armnn::IConnectableLayer* AddDepthwiseConvolution2dLayer( const armnn::DepthwiseConvolution2dDescriptor& convolution2dDescriptor, - const armnn::ConstTensor& weights, - const armnn::ConstTensor* biases = nullptr, const char* name = nullptr) { - ARMNN_NO_DEPRECATE_WARN_BEGIN - if (biases) { - return $self->AddDepthwiseConvolution2dLayer(convolution2dDescriptor, weights, - armnn::Optional<armnn::ConstTensor>(*biases), name); - } else { - return $self->AddDepthwiseConvolution2dLayer(convolution2dDescriptor, weights, - armnn::Optional<armnn::ConstTensor>(), name); - } - ARMNN_NO_DEPRECATE_WARN_END + return $self->AddDepthwiseConvolution2dLayer(convolution2dDescriptor, name); } } |