Skip to content

Commit

Permalink
Fix a potential error in group norm (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyizh committed Jun 7, 2024
1 parent ccf4fb6 commit 1885741
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions itex/python/ops/group_norm_k3.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def __init__(
self.use_gpu = None

def build(self, input_shape):
self.supports_jit = False
self.use_gpu = len(tf.config.list_physical_devices("XPU")) > 0
dim = input_shape[self.axis]

Expand Down

0 comments on commit 1885741

Please sign in to comment.