[tf]unpack FLAGS into model

11452592-711178483a237af3.png
image.png

model函数中

def __init__(self, flags):
    # Read keys/values from flags and assign to self
    for key, val in flags.__dict__.items():
        if key not in self.__dict__.keys():
            self.__dict__[key] = val

主函数中

FLAGS = getFlags_GAN()
# Initialize model
model = Model(FLAGS)

猜你喜欢

转载自blog.csdn.net/weixin_34306446/article/details/87337833