mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
renam LastLayer for FinalLayer
This commit is contained in:
@@ -428,7 +428,7 @@ class PhotonBlock(nn.Module):
|
||||
return img
|
||||
|
||||
|
||||
class LastLayer(nn.Module):
|
||||
class FinalLayer(nn.Module):
|
||||
r"""
|
||||
Final projection layer with adaptive LayerNorm modulation.
|
||||
|
||||
@@ -634,7 +634,7 @@ class PhotonTransformer2DModel(ModelMixin, ConfigMixin, AttentionMixin):
|
||||
]
|
||||
)
|
||||
|
||||
self.final_layer = LastLayer(self.hidden_size, 1, self.out_channels)
|
||||
self.final_layer = FinalLayer(self.hidden_size, 1, self.out_channels)
|
||||
|
||||
self.gradient_checkpointing = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user