1adrianb / 1adrianb/binary-networks-pytorch

A bug in the readme file

Open Beginner friendly
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
149
Forks
15
PR merge metrics
No merged PRs in 30d

Description

In the example code, you forgot to put {} around the "string:Bconfig()" pair.

Right now:
bmodel = prepare_binary_model(model, bconfig, custom_config_layers_name=['conv1' : BConfig()])

Should be:
bmodel = prepare_binary_model(model, bconfig, custom_config_layers_name=[{'conv1' : BConfig()}])

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue points to a syntax error in the README file. Locate the README.md in the repository root, find the example code for prepare_binary_model, and correct the dictionary syntax by adding curly braces around 'conv1' : BConfig(). Verify the fix by checking the formatting and ensuring no other similar errors exist in the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
90/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.