addons icon indicating copy to clipboard operation
addons copied to clipboard

How can I call adaptive average pooling function for 4D tensor

Open ifmaq1 opened this issue 4 years ago • 0 comments

1-) I have a .pth image features' file with 4D tensor [batch,dimension,height,width]. I can see this class (AdaptiveAveragePooling2D(AdaptivePooling2D):

Could you please tell me how can I Pass my .pth file tensor to this class in order to get the pooled features as output?

2-) How to use this function

tfa.layers.AdaptiveAveragePooling2D( output_size: Union[int, Iterable[int]], data_format=None, kwargs )

3-) I want final tensor of shape [2048,36]

ifmaq1 avatar Jul 10 '21 14:07 ifmaq1