simonduerr commited on
Commit
80ca202
1 Parent(s): 1f361c8

Update af_backprop/alphafold/model/utils.py

Browse files
af_backprop/alphafold/model/utils.py CHANGED
@@ -53,7 +53,7 @@ def mask_mean(mask, value, axis=None, drop_mask_channel=False, eps=1e-10):
53
  axis = [axis]
54
  elif axis is None:
55
  axis = list(range(len(mask_shape)))
56
- assert isinstance(axis, collections.Iterable), (
57
  'axis needs to be either an iterable, integer or "None"')
58
 
59
  broadcast_factor = 1.
 
53
  axis = [axis]
54
  elif axis is None:
55
  axis = list(range(len(mask_shape)))
56
+ assert isinstance(axis, collections.abc.Iterable), (
57
  'axis needs to be either an iterable, integer or "None"')
58
 
59
  broadcast_factor = 1.