Skip to content

Comments

Fix numpy broadcasting code#20

Open
denisshaf wants to merge 1 commit intomCodingLLC:masterfrom
denisshaf:master
Open

Fix numpy broadcasting code#20
denisshaf wants to merge 1 commit intomCodingLLC:masterfrom
denisshaf:master

Conversation

@denisshaf
Copy link

Hi James, thank you for your videos!

I fixed a mixed up lines in the last cell. You are trying to create x with an incorrect value of shape which is taken from the scope of the previous sells, and after that you assign a correct value to shape.

Before:

x = np.ones(shape, dtype=np.uint8) # for example
shape = (1000, 3, 32, 32)
out = np.empty(shape, dtype=np.uint8)

After:

shape = (1000, 3, 32, 32)
x = np.ones(shape, dtype=np.uint8) # for example
out = np.empty(shape, dtype=np.uint8)

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