Attribute Error in the models.py

Open
#730 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, tensorflow

Research direction

Reproduce the error by running train.py, then inspect lib/models.py around line 120 in MultiConvexNet.compute_loss and trace how the object is initialized. Determine why self.updates is unavailable and verify that training proceeds without this AttributeError.

Written by the indexing model from the issue text.

Description

After running the train.py, I got this error:

  File "/.../graphics/tensorflow_graphics/projects/cvxnet/lib/models.py", line 120, in compute_loss
    update_ops = self.updates
                 ^^^^^^^^^^^^
AttributeError: 'MultiConvexNet' object has no attribute 'updates'

It looks the MultiConvexNet object is not initialized and the error happens.
Could you help me to solve the problem.

Dominant language
Python
Stars
2.8k
Forks
374
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tensorflow/graphics

All issues in tensorflow/graphics

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.