Skip to content

fix: mixed tabs and spaces in L1.backward cause TabError - #11

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:masterfrom
andrewwhitecdw:sweep/bugfix-loss-894b064d
Open

andrewwhitecdw wants to merge 1 commit into
NVlabs:masterfrom
andrewwhitecdw:sweep/bugfix-loss-894b064d

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 26, 2026

Copy link
Copy Markdown

Problem

fix: mixed tabs and spaces in L1.backward cause TabError

Fix

Replace:

    def backward(self, top, propagate_down, bottom):

	    # get the sign
        diff_sign = np.sign(self.diff)

with:

    def backward(self, top, propagate_down, bottom):

        # get the sign
        diff_sign = np.sign(self.diff)

Files changed

  • src/loss.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review July 26, 2026 21:06
@andrewwhitecdw

Copy link
Copy Markdown
Author

Closing this sweep-generated PR: sole commit is missing a valid Signed-off-by trailer. It does not meet the sweep requirements (single signed-off commit).

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

Successfully merging this pull request may close these issues.

1 participant