Commit 33c77636 authored by yongshk's avatar yongshk
Browse files

update

parent a849873f
......@@ -5,8 +5,11 @@ import torch
from torch.autograd import Variable
from collections import OrderedDict
from subprocess import call
import fractions
def lcm(a,b): return abs(a * b)/fractions.gcd(a,b) if a and b else 0
# python版本变化修正
# import fractions
# def lcm(a,b): return abs(a * b)/fractions.gcd(a,b) if a and b else 0
import math
def lcm(a,b): return abs(a * b)/math.gcd(a,b) if a and b else 0
from options.train_options import TrainOptions
from data.data_loader import CreateDataLoader
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment