aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_opcode.cc
diff options
context:
space:
mode:
authorGravatar Petros Mol <pmol@google.com>2017-06-14 09:06:29 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-14 09:10:14 -0700
commitdf511d09b051914cbc4fc559807a3f0d07dfee71 (patch)
tree5c70cb1e00beddce3a6dfd60d35c0b1b3d93bf01 /tensorflow/compiler/xla/service/hlo_opcode.cc
parentade1560e651e67d6cf33dc05a3ab26abf364446b (diff)
[XLA] Add a Cos unary operation that computes the elementwise cosine
PiperOrigin-RevId: 158984883
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_opcode.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_opcode.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_opcode.cc b/tensorflow/compiler/xla/service/hlo_opcode.cc
index 5bda6b6dab..342c43dc5a 100644
--- a/tensorflow/compiler/xla/service/hlo_opcode.cc
+++ b/tensorflow/compiler/xla/service/hlo_opcode.cc
@@ -42,6 +42,8 @@ string HloOpcodeString(HloOpcode opcode) {
return "convert";
case HloOpcode::kConvolution:
return "convolution";
+ case HloOpcode::kCos:
+ return "cosine";
case HloOpcode::kCrossReplicaSum:
return "cross-replica-sum";
case HloOpcode::kCustomCall: