Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can a None type variable has an attribute `shape'? #11

Open
Qinka opened this issue May 24, 2021 · 0 comments
Open

How can a None type variable has an attribute `shape'? #11

Qinka opened this issue May 24, 2021 · 0 comments

Comments

@Qinka
Copy link

Qinka commented May 24, 2021

:param out_block: Tensor for skip connection, shape = (N x C x H x W), defaults to None

unpool = self.unpool(input, indices, out_block.shape)

The variable out_block is an optional parameter, and the default value is None. However, the code in line 422, out_block.value ,try to access the attribute shape of out_block.

Qinka added a commit to Qinka/nn-common-modules that referenced this issue May 24, 2021
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

No branches or pull requests

1 participant