TypeError: 'module' object is not callable

Hi @eb8680_2 I have created my own guide and model and I am doing boosting. I am getting the below error when I try to run the code

the error is in
elbo = Trace_ELBO(max_plate_nesting=1)
loss_fn = elbo.differentiable_loss(model, traced_guide, *args, **kwargs)

loss function call get_trace function.

Traceback (most recent call last):
File “New_boosting.py”, line 218, in
File “New_boosting.py”, line 198, in boosting_bbvi
loss = svi.step(data,labels, approximation=wrapped_approximation) #here we cannot feed the lable data as they are not feeding the data in example mentioned on the website
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/infer/svi.py”, line 100, in step
loss = self.loss_and_grads(self.model, self.guide, *args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/infer/svi.py”, line 58, in _loss_and_grads
loss_val = loss(*args, **kwargs)
File “New_boosting.py”, line 151, in relbo
loss_fn = elbo.differentiable_loss(model, traced_guide, *args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/infer/trace_elbo.py”, line 110, in differentiable_loss
for model_trace, guide_trace in self._get_traces(model, guide, *args, **kwargs):
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/infer/elbo.py”, line 173, in _get_traces
yield self._get_trace(model, guide, *args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/infer/trace_elbo.py”, line 52, in _get_trace
“flat”, self.max_plate_nesting, model, guide, *args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/infer/enum.py”, line 42, in get_importance_trace
guide_trace = poutine.trace(guide, graph_type=graph_type).get_trace(*args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/poutine/trace_messenger.py”, line 169, in get_trace
self(*args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/poutine/trace_messenger.py”, line 147, in call
ret = self.fn(*args, **kwargs)
File “/home/pranav/.local/lib/python3.6/site-packages/pyro/poutine/trace_messenger.py”, line 147, in call
ret = self.fn(*args, **kwargs)
File “New_boosting.py”, line 99, in guide
TypeError: ‘module’ object is not callable

I am not making the function calls correctly?