mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: ruff
Looks like an upstream change to ruff resulted in this file being a violation.
This commit is contained in:
parent
d7d59d704b
commit
28e79c4c5e
@ -98,7 +98,7 @@ class UnetSkipConnectionBlock(nn.Module):
|
|||||||
"""
|
"""
|
||||||
super(UnetSkipConnectionBlock, self).__init__()
|
super(UnetSkipConnectionBlock, self).__init__()
|
||||||
self.outermost = outermost
|
self.outermost = outermost
|
||||||
if type(norm_layer) == functools.partial:
|
if isinstance(norm_layer, functools.partial):
|
||||||
use_bias = norm_layer.func == nn.InstanceNorm2d
|
use_bias = norm_layer.func == nn.InstanceNorm2d
|
||||||
else:
|
else:
|
||||||
use_bias = norm_layer == nn.InstanceNorm2d
|
use_bias = norm_layer == nn.InstanceNorm2d
|
||||||
|
Loading…
Reference in New Issue
Block a user