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

update

parent a849873f
...@@ -5,8 +5,11 @@ import torch ...@@ -5,8 +5,11 @@ import torch
from torch.autograd import Variable from torch.autograd import Variable
from collections import OrderedDict from collections import OrderedDict
from subprocess import call from subprocess import call
import fractions # python版本变化修正
def lcm(a,b): return abs(a * b)/fractions.gcd(a,b) if a and b else 0 # 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 options.train_options import TrainOptions
from data.data_loader import CreateDataLoader 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