diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-16 07:22:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-16 07:22:51 +0000 |
commit | c121f8c31587a21020e8670664977f6f76e68905 (patch) | |
tree | 5db19664111d4264d4b018bee6557d7d6b0ec1c4 /extensions-builtin/Lora/network_norm.py | |
parent | 60186c7b9d6034ff08f4fe9e213a495b5321302d (diff) | |
parent | 8edb9144cc76b39f3d68c0407b3bb990809d1b03 (diff) | |
download | stable-diffusion-webui-gfx803-c121f8c31587a21020e8670664977f6f76e68905.tar.gz stable-diffusion-webui-gfx803-c121f8c31587a21020e8670664977f6f76e68905.tar.bz2 stable-diffusion-webui-gfx803-c121f8c31587a21020e8670664977f6f76e68905.zip |
Merge pull request #14031 from AUTOMATIC1111/test-fp8
A big improvement for dtype casting system with fp8 storage type and manual cast
Diffstat (limited to 'extensions-builtin/Lora/network_norm.py')
-rw-r--r-- | extensions-builtin/Lora/network_norm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions-builtin/Lora/network_norm.py b/extensions-builtin/Lora/network_norm.py index ce450158..d25afcbb 100644 --- a/extensions-builtin/Lora/network_norm.py +++ b/extensions-builtin/Lora/network_norm.py @@ -18,10 +18,10 @@ class NetworkModuleNorm(network.NetworkModule): def calc_updown(self, orig_weight): output_shape = self.w_norm.shape - updown = self.w_norm.to(orig_weight.device, dtype=orig_weight.dtype) + updown = self.w_norm.to(orig_weight.device) if self.b_norm is not None: - ex_bias = self.b_norm.to(orig_weight.device, dtype=orig_weight.dtype) + ex_bias = self.b_norm.to(orig_weight.device) else: ex_bias = None |