Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fhuszar/6fd7fcabaea15c7a150bfc84a51dcfad to your computer and use it in GitHub Desktop.
Save fhuszar/6fd7fcabaea15c7a150bfc84a51dcfad to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tigerneil
Copy link

Came across the following problem:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-10-a2225fbe7357> in <module>()
    104 )
    105 
--> 106 grad_comp_1 = theano.clone(dHdG, replace={samples_from_generator: w_var})/batchsize
    107 grad_comp_2 = T.grad(theano.clone(log_prior, replace={samples_from_generator: w_var}), wrt=w_var)
    108 grad_comp_3 = T.grad(theano.clone(log_likelihood, replace={samples_from_generator: w_var}), wrt=w_var)

NameError: name 'batchsize' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment