[XLA] Speed up SliceTest.
authorJustin Lebar <jlebar@google.com>
Thu, 24 May 2018 00:52:29 +0000 (17:52 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 24 May 2018 00:54:57 +0000 (17:54 -0700)
commitc94c8674b214ea9ddd28486b4dacade2d5b0db77
tree0a0a5a6d99d40639a7c75e9539dec01009a7a42f
parent335d52c17644f417bc53abe4ef87ead9de01ad6d
[XLA] Speed up SliceTest.

- Use parameters rather than constants, because LLVM and ptxas are slow
  with large constants.

- Use iota rather than filling with random values, because the latter is
  slow.

PiperOrigin-RevId: 197820897
tensorflow/compiler/xla/tests/slice_test.cc