PyTorch-BayesianCNN icon indicating copy to clipboard operation
PyTorch-BayesianCNN copied to clipboard

forward and outputs of models

Open jimmykimmy68 opened this issue 2 years ago • 1 comments

Hi, thanks for your great work!

I have two questions on the Bayesian CNN codes, which are as follows;

First, where is the forward method in the model class? e.g., in class BBBAlexNet, there only is init, but isn't 'forward' prediction method.

Second, in main_bayesian.py, how does the network (i.e., model) output both so-called "outputs" and "_kl" ?

jimmykimmy68 avatar Aug 19 '22 04:08 jimmykimmy68

Hi. A little bit late, but still.

First, BBBAlexNet class is inherited from ModuleWrapper class that inherits from nn.Module and has a forward method. Second, this forward method returns 2 values.

pluvias avatar Jan 10 '23 12:01 pluvias