Also set the unroll factor in the C++ integration code for tanh.

PiperOrigin-RevId: 317083225
Change-Id: I7c2c26d664c15cbc967188da4b3012161edbcf49
This commit is contained in:
Adrian Kuegel 2020-06-18 05:26:02 -07:00 committed by TensorFlower Gardener
parent 7378fabf90
commit 78f6d51b8d

View File

@ -124,7 +124,7 @@ class MlirGeneratedTanhOp : public OpKernel {
// This has to be aligned with the configuration that was used when building
// the kernels. See the corresponding build rules in `cubin_headers/BUILD`.
LaunchConfig config = GetLaunchConfiguration(
{256}, {}, {static_cast<uint64>(inp.NumElements())});
{256}, {4}, {static_cast<uint64>(inp.NumElements())});
OP_REQUIRES_OK(
ctx, stream->parent()->Launch(stream, config.threadDim, config.blockDim,
*kernel, args));