I am trying to get values of StyleGAN generator constant layer using the following code in Google Colab with GPU runtime
v1 = (tflib.run(['G_synthesis_1/4x4/Const/const:0'])[0])
But I am getting the following error:
> InvalidArgumentError: Cannot place the graph because a reference or
> resource edge connects colocation groups with incompatible assigned
> devices: /job:localhost/replica:0/task:0/device:GPU:0 vs
> /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is
> G_synthesis_1/4x4/Const/const , and the dst node is
> _retval_G_synthesis_1/4x4/Const/const_0_0
Here is error paste-bin
And here is the reference code I am trying to replicate. The runtime type of notebook is set to GPU, so I would have assumed that the code would be run on it. Is it possible to run it in Colab?