diff options
author | Mark Heffernan <meheff@google.com> | 2018-09-27 10:53:36 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-27 10:56:27 -0700 |
commit | 6d41787c32483b28f8c93973f28d4d078ea0b37e (patch) | |
tree | 1b310e402a71a8b79b24f33080b034b75c4df32b /tensorflow/compiler/xla/service/hlo_parser_test.cc | |
parent | 334244be6864dd1dbec9bc8bb4996cc286a8e3e3 (diff) |
Add opaque field to custom call.
The intent of this field is to enable more information to be encoded in the custom call and passed through to the backend.
PiperOrigin-RevId: 214800539
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_parser_test.cc')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_parser_test.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_parser_test.cc b/tensorflow/compiler/xla/service/hlo_parser_test.cc index cca50fab54..96db96bdb9 100644 --- a/tensorflow/compiler/xla/service/hlo_parser_test.cc +++ b/tensorflow/compiler/xla/service/hlo_parser_test.cc @@ -1004,6 +1004,18 @@ ENTRY CustomCall { )" }, +// CustomCall with opaque value. +{ +"CustomCallWithOpaque", +R"(HloModule custom_call + +ENTRY CustomCall { + constant = f32[1]{0} constant({12345}) + ROOT custom-call = f32[1,2,3]{0,2,1} custom-call(constant), custom_call_target="foo\"bar", opaque="this string is opaque" +} + +)" +}, // Variables with non-default names { "NonDefaultNames", |