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

[lab3 part1] bias_wrapped_dense_NN.call error #121

Open
paolopas opened this issue Apr 15, 2023 · 4 comments
Open

[lab3 part1] bias_wrapped_dense_NN.call error #121

paolopas opened this issue Apr 15, 2023 · 4 comments

Comments

@paolopas
Copy link

paolopas commented Apr 15, 2023

I had the problem at first evaluation for the model, near the end of section
https://colab.research.google.com/github/aamini/introtodeeplearning/blob/master/lab3/Part1_IntroductionCapsa.ipynb#scrollTo=1_3_Evaluating_bias

error_traceback

As I see Capsa return a wrapped Tensor (<RiskTensor: shape=(500, 1), dtype=float32, risk=(bias,)>), wich wraps bias.
Should be something like
prediction_wrap = bias_wrapped_dense_NN(x_test)
instead, e then use prediction_wrap.bias...

Note: if this is an intentional mistake, please excuse the issue

@antoineouellet
Copy link

Also encountered the issue and solved in a similar manner.

@SmartSPG
Copy link

Also encountered the issue and solved in a similar manner.
Can you tell me how you modified this line of code

@antoineouellet
Copy link

As OP. The output can not be unpacked to tuple, so write to single object and access its properties.

@SmartSPG
Copy link

I solved it ,thanks a lot

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

3 participants