Defining Cross Entropy function in user defined Learner : Inception_V3

learn = Learner(data,inceptionModel,loss_func=data.loss_func,metrics=accuracy)

Error :

AttributeError Traceback (most recent call last)

<ipython-input-93-47df9df23a95> in <module>() ----> 1 learn.fit_one_cycle(5)

4 frames

/usr/local/lib/python3.6/dist-packages/fastai/layers.py in call(self, input, target, **kwargs) 262 263 def call(self, input:Tensor, target:Tensor, **kwargs)->Rank0Tensor: --> 264 input = input.transpose(self.axis,-1).contiguous() 265 target = target.transpose(self.axis,-1).contiguous() 266 if self.floatify: target = target.float()

AttributeError: ‘InceptionOuputs’ object has no attribute 'transpose’