Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INFO:tensorflow:Querying Tensorflow master (grpc://10.0.203.10:8470) for TPU system metadata.
- INFO:tensorflow:Found TPU system:
- INFO:tensorflow:*** Num TPU Cores: 8
- INFO:tensorflow:*** Num TPU Workers: 1
- INFO:tensorflow:*** Num TPU Cores Per Worker: 8
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:CPU:0, CPU, -1, 1941375595625340814)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:XLA_CPU:0, XLA_CPU, 17179869184, 9079881000847066378)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:0, TPU, 17179869184, 6922694346479333534)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:1, TPU, 17179869184, 14324637633413341896)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:2, TPU, 17179869184, 3528106575831937158)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:3, TPU, 17179869184, 13852141601322651612)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:4, TPU, 17179869184, 10344791506504172772)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:5, TPU, 17179869184, 16666353711371098164)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:6, TPU, 17179869184, 3428083526573573796)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU:7, TPU, 17179869184, 8632908473312514763)
- INFO:tensorflow:*** Available Device: _DeviceAttributes(/job:worker/replica:0/task:0/device:TPU_SYSTEM:0, TPU_SYSTEM, 17179869184, 9715206562754100387)
- WARNING:tensorflow:tpu_model (from tensorflow.contrib.tpu.python.tpu.keras_support) is experimental and may change or be removed at any time, and without warning.
- ---------------------------------------------------------------------------
- InvalidArgumentError Traceback (most recent call last)
- <ipython-input-11-b9f2a49a32bc> in <module>()
- 11 model,
- 12 strategy=tf.contrib.tpu.TPUDistributionStrategy(
- ---> 13 tf.contrib.cluster_resolver.TPUClusterResolver(TPU_WORKER)))
- /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/framework/python/framework/experimental.py in new_func(*args, **kwargs)
- 62 'any time, and without warning.',
- 63 decorator_utils.get_qualified_name(func), func.__module__)
- ---> 64 return func(*args, **kwargs)
- 65 new_func.__doc__ = _add_experimental_function_notice_to_docstring(
- 66 func.__doc__)
- /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/tpu/python/tpu/keras_support.py in tpu_model(model, strategy)
- 2223 model_weights = None
- 2224
- -> 2225 setup_tpu_session(strategy._tpu_cluster_resolver)
- 2226
- 2227 # Force initialization of the CPU model in the TPU session.
- /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/tpu/python/tpu/keras_support.py in setup_tpu_session(cluster_resolver)
- 159
- 160 tpu_session = tf_session.Session(target=master, config=config)
- --> 161 tpu_session.run(tpu.initialize_system())
- 162 tpu_session._tpu_initialized = True
- 163
- /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/tpu/python/tpu/tpu.py in initialize_system(embedding_config, job)
- 92 embedding_config.SerializeToString())
- 93 with ops.device(_tpu_system_device_name(job)):
- ---> 94 return tpu_ops.configure_distributed_tpu(embedding_config=config_string)
- 95
- 96
- /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/tpu/ops/gen_tpu_ops.py in configure_distributed_tpu(embedding_config, tpu_embedding_config, is_global_init, name)
- 298 else:
- 299 message = e.message
- --> 300 _six.raise_from(_core._status_to_exception(e.code, message), None)
- 301 # Add nodes to the TensorFlow graph.
- 302 if embedding_config is None:
- /usr/local/lib/python3.6/dist-packages/six.py in raise_from(value, from_value)
- InvalidArgumentError: /job:localhost/replica:0/task:0/device:TPU_SYSTEM:0 unknown device.
Advertisement
Add Comment
Please, Sign In to add comment