question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sudoku experiment

See original GitHub issue

I tried running the sudoku example. My command line arguments are as follows:

python main.py --boardSz 2 --batchSz 100 --testBatchSz 100 --nEpoch 50 --testPct 0.1 --save SAVE --work 'work' optnet

I get errors arising from models.py:

TypeError: super() takes at least 1 argument (0 given)
> /home/robotec/Documents/NNs/optnet/sudoku/models.py(80)__init__()
     78     """ Solve a single SQP iteration of the scheduling problem"""
     79     def __init__(self, n, Qpenalty):
---> 80         super().__init__()
     81         nx = (n**2)**3
     82         self.Q = Variable(Qpenalty*torch.eye(nx).double().cuda())

ipdb> 

Did I miss something?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
robotsorcerercommented, Apr 4, 2017

I know, haha! My problem size is a small adaptive control problem, not the gargantuan deep learning problems you guys solve 😃

1reaction
bamoscommented, Apr 4, 2017

Hi @lakehanne - oops, I accidentally made a typo in the CPU version of btrisolve that makes it throw this unimplemented error when it actually is implemented. I just fixed this in the pytorch source code and sent in a PR to their master branch: https://github.com/pytorch/pytorch/pull/1185.

Can you try again after re-compiling pytorch with this change added?

-Brandon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An Experiment using Sudoku Puzzles - JSE
The experiment takes approximately 15-20 minutes to run and involves each student completing one of four types of Sudoku puzzles and recording the...
Read more >
Sudoku experiment - notes for teachers
In this activity, students help design and then conduct an experiment to investigate the effect of puzzle type on time taken to complete...
Read more >
Planet Sudoku by Ivan
Chrome Experiments. Planet Sudoku is a robust HTML5 Sudoku game with millions of Sudoku puzzles including Sudoku 9x9, Multi 2, Multi 4, and...
Read more >
Study Says Sudoku and Crossword Puzzles Keep Your ...
People Who Regularly Play Sudoku and Crossword Puzzles Have Sharper Brains, New Study Finds ... Time to break out those pencils. ... Puzzles...
Read more >
Role of prefrontal cortex during Sudoku task: fNIRS study - NCBI
Sudoku requires attention of the subject to analyze the grids and fill in the numbers; basically it requires no math but is based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found