Skip to content
Snippets Groups Projects
Commit 4b9eeba4 authored by Peter Baylies's avatar Peter Baylies
Browse files

Test nvcc on runway

parent 4109f04b
Branches
No related tags found
No related merge requests found
......@@ -3,12 +3,15 @@ import numpy as np
import tensorflow as tf
import dnnlib.tflib as tflib
import runway
import os
fmt = dict(func=tflib.convert_images_to_uint8, nchw_to_nhwc=True)
@runway.setup(options={'checkpoint': runway.file(extension='.pkl')})
def setup(opts):
global Gs
os.system("./test_nvcc")
os.system("nvcc test_nvcc.cu -o test_nvcc -run")
tflib.init_tf()
with open(opts['checkpoint'], 'rb') as file:
_G, _D, Gs = pickle.load(file, encoding='latin1')
......
test_nvcc 0 → 100755
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment