diff options
author | 2018-09-18 22:33:38 -0700 | |
---|---|---|
committer | 2018-09-18 22:37:39 -0700 | |
commit | 50125bf0d8ee9f47b868211f62cb545c5701a032 (patch) | |
tree | 6c65f7bf4af58772bfb1a8cf1941904436514020 /tensorflow/contrib/tpu | |
parent | d7cc73c300b12e7c02507bcfaff146d6c4955f19 (diff) |
Add xla.compile(), a low-level API that compiles graph with XLA.
PiperOrigin-RevId: 213574904
Diffstat (limited to 'tensorflow/contrib/tpu')
-rw-r--r-- | tensorflow/contrib/tpu/python/tpu/tpu_function.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tensorflow/contrib/tpu/python/tpu/tpu_function.py b/tensorflow/contrib/tpu/python/tpu/tpu_function.py index de16e3b157..0c7a38dbbb 100644 --- a/tensorflow/contrib/tpu/python/tpu/tpu_function.py +++ b/tensorflow/contrib/tpu/python/tpu/tpu_function.py @@ -63,10 +63,9 @@ def check_function_argument_count(func, input_arity, infeed_queue): """Validate the number of input arguments to a tpu function. Args: - func: the Python function that will be called to generate the body - of a TPUFunction. - input_arity: the number of explicit arguments supplied by the - caller. + func: the Python function that will be called to generate the body of an XLA + computation graph. + input_arity: the number of explicit arguments supplied by the caller. infeed_queue: if not None, the infeed queue that will supply additional arguments to the function. @@ -103,4 +102,3 @@ def check_function_argument_count(func, input_arity, infeed_queue): # Since there are varargs, func can accept any number of arguments # greater than the minimum. return None - |