More compact return statement
This commit is contained in:
parent
9a708328e7
commit
7bec52c55d
@ -107,10 +107,7 @@ def parse_augmentations(augmentation_specs):
|
|||||||
-------
|
-------
|
||||||
List of augmentation class instances from util.augmentations.*.
|
List of augmentation class instances from util.augmentations.*.
|
||||||
"""
|
"""
|
||||||
if augmentation_specs is None:
|
return list(map(parse_augmentation, augmentation_specs or []))
|
||||||
return []
|
|
||||||
else:
|
|
||||||
return list(map(parse_augmentation, augmentation_specs))
|
|
||||||
|
|
||||||
|
|
||||||
def apply_graph_augmentations(domain, tensor, augmentations, transcript=None, clock=0.0):
|
def apply_graph_augmentations(domain, tensor, augmentations, transcript=None, clock=0.0):
|
||||||
|
Loading…
Reference in New Issue
Block a user