tensorflow/compiler/xla/tests/tuple_test.cc
// Tests the creation of tuple data.
Tests the creation of tuple data.
Tests the creation of tuple data .
XLA_TEST_F(TupleTest, TupleCreateWithZeroElementEntry) {
  XlaBuilder builder(TestName());
  Tuple(&builder,
        {ConstantR0<float>(&builder, 7.0), ConstantR1<float>(&builder, {})});
  auto expected = LiteralUtil::MakeTupleFromSlices(
      {LiteralUtil::CreateR0<float>(7.0), LiteralUtil::CreateR1<float>({})});
  ComputeAndCompareTuple(&builder, expected, {}, error_spec_);
}
XLA_TEST_F ( TupleTest , TupleCreateWithZeroElementEntry ) { XlaBuilder builder ( TestName ( ) ) ; Tuple ( & builder , { ConstantR0 < float > ( & builder , 7.0 ) , ConstantR1 < float > ( & builder , { } ) } ) ; auto expected = LiteralUtil :: MakeTupleFromSlices ( { LiteralUtil :: CreateR0 < float > ( 7.0 ) , LiteralUtil :: CreateR1 < float > ( { } ) } ) ; ComputeAndCompareTuple ( & builder , expected , { } , error_spec_ ) ; }
Tests the creation of tuple data.
Tests the creation of tuple data .