diff options
author | Rachel Lim <rachelim@google.com> | 2018-10-04 13:01:33 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-04 13:12:57 -0700 |
commit | 7fcb05ff475a0c6c1076eacf9d11e17323d98bc2 (patch) | |
tree | 84087a64563d10c3390f991c6263c7fa2cc65b11 /tensorflow/core/api_def | |
parent | 074ff471fefbcf3bfd49914ad80bd9f9751df363 (diff) |
[tf.data] Add a notion of `captured args` to MapDefun
PiperOrigin-RevId: 215788485
Diffstat (limited to 'tensorflow/core/api_def')
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_MapDefun.pbtxt | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/tensorflow/core/api_def/base_api/api_def_MapDefun.pbtxt b/tensorflow/core/api_def/base_api/api_def_MapDefun.pbtxt index 4433693759..d158f4b502 100644 --- a/tensorflow/core/api_def/base_api/api_def_MapDefun.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_MapDefun.pbtxt @@ -4,16 +4,23 @@ op { in_arg { name: "arguments" description: <<END - A list of tensors whose types are Targuments, corresponding to the inputs the - function should be mapped over. + A list of tensors whose types are `Targuments`, corresponding to the inputs + the function should be mapped over. +END + } + in_arg { + name: "captured_inputs" + description: <<END + A list of tensors whose types are `Tcaptured`, corresponding to the captured + inputs of the defun. END } out_arg { name: "output" description: <<END - A list of output tensors whose types are output_types and whose dimensions 0 - are the same as the dimensions 0 of the tensors in arguments, and whose - remaining dimensions correspond to those in output_shapes. + A list of output tensors whose types are `output_types` and whose dimensions + 0 are the same as the dimensions 0 of the tensors in `arguments`, and whose + remaining dimensions correspond to those in `output_shapes`. END } attr { @@ -21,6 +28,10 @@ END description: "A list of types." } attr { + name: "Tcaptured" + description: "A list of types." + } + attr { name: "output_types" description: "A list of types." } @@ -29,6 +40,6 @@ END description: "A list of shapes." } summary: <<END - Maps a function on the list of tensors unpacked from inputs on dimension 0. + Maps a function on the list of tensors unpacked from arguments on dimension 0. END } |