Open mfl28 opened 4 years ago
Hi @mfi28, thanks for your report! I agree that this is a FP :+1:
We're currently busy reworking large parts of the Python QL libraries, so we won't be focusing on fixing this until later this year.
Sounds good, thanks for the info!
Description of the false positive
I get
Call to a non-callable of class ...
error alerts for PyTorch classes that inherit from the callabletorch.nn.Module
class:torch.nn.CrossEntropyLoss
This class inherits from_WeightedLoss
which inherits form_Loss
which inherits fromtorch.nn.Module
(see here for the source code).torch.nn.ReflectionPad2d
This class inherits from_ReflectionPadNd
which inherits fromtorch.nn.Module
(see here for the source code).torch.nn.Module
defines the__call__
method as can be seen here.URL to the alert on the project page on LGTM.com
CrossEntropyLoss
errors: alert-1, alert-2ReflectionPad2d
error: alert