Fix "depsets cannot contain mutable items" error with CUDA builds in Bazel 0.5.3
Fix "depsets cannot contain mutable items" error with CUDA builds in Bazel 0.5.3

(cherry picked from commit c5d311eaf8cc6471643b5c43810a1feb19662d6c)

JVillella/tensorflow,JVillella/tensorflow,JVillella/tensorflow,JVillella/tensorflow,JVillella/tensorflow,JVillella/tensorflow,JVillella/tensorflow