Mark the `SerializeSparseOp<Variant>` kernel as inexpensive.
authorDerek Murray <mrry@google.com>
Wed, 21 Feb 2018 22:46:29 +0000 (14:46 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 21 Feb 2018 22:52:03 +0000 (14:52 -0800)
commit8017c247c84c4c80fa11744b1b913aec3ee88f3e
tree46c3b77a592efaaec7497b8b7b7ba0c0054771b3
parent32e39947c80ad410042a5aea266f197e9ecd289d
Mark the `SerializeSparseOp<Variant>` kernel as inexpensive.

Since this op only performs a constant amount of work, and typically
executes in a few microseconds, it should be profitable to execute
this op inline, rather than scheduling it on a remote thread.

PiperOrigin-RevId: 186522885
tensorflow/core/kernels/serialize_sparse_op.cc