Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward and outputs of models #71

Open
jimmykimmy68 opened this issue Aug 19, 2022 · 1 comment
Open

forward and outputs of models #71

jimmykimmy68 opened this issue Aug 19, 2022 · 1 comment

Comments

@jimmykimmy68
Copy link

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" ?

@pluvias
Copy link

pluvias commented Jan 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants