MCPcopy Create free account
hub / github.com/NVIDIA/pix2pixHD / lcm

Function lcm

train.py:9–9  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

7from subprocess import call
8import fractions
9def lcm(a,b): return abs(a * b)/fractions.gcd(a,b) if a and b else 0
10
11from options.train_options import TrainOptions
12from data.data_loader import CreateDataLoader

Callers 1

train.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected