def __init__(self): self._model = FastStyleNet() serializers.load_npz('composition.model', self._model) cuda.get_device(0).use() self._model.to_gpu()