Home
last modified time | relevance | path

Searched refs:zero_literal (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dbatchnorm_expander.cc181 auto zero_literal = LiteralUtil::CreateR0(0.0f); in HandleBatchNormTraining() local
182 TF_ASSIGN_OR_RETURN(zero_literal, zero_literal.Convert(ptype)); in HandleBatchNormTraining()
183 auto zero = add(HloInstruction::CreateConstant(std::move(zero_literal))); in HandleBatchNormTraining()
424 auto zero_literal = LiteralUtil::CreateR0(0.0f); in HandleBatchNormGrad() local
425 TF_ASSIGN_OR_RETURN(zero_literal, zero_literal.Convert(ptype)); in HandleBatchNormGrad()
426 auto zero = add(HloInstruction::CreateConstant(std::move(zero_literal))); in HandleBatchNormGrad()
Dconvolution_group_converter.cc365 auto zero_literal = LiteralUtil::Zero(reduce_type); in HandleBatchGroupCount() local
367 add(HloInstruction::CreateConstant(std::move(zero_literal))); in HandleBatchGroupCount()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dmath_test.cc228 Literal zero_literal = LiteralUtil::Zero(PrimitiveType::F32); in XLA_TEST_F() local
231 client_->TransferToServer(zero_literal).ConsumeValueOrDie(); in XLA_TEST_F()
233 XlaOp zero = Parameter(&builder, 0, zero_literal.shape(), "zero"); in XLA_TEST_F()
241 Literal zero_literal = LiteralUtil::Zero(PrimitiveType::F64); in XLA_TEST_F() local
244 client_->TransferToServer(zero_literal).ConsumeValueOrDie(); in XLA_TEST_F()
246 XlaOp zero = Parameter(&builder, 0, zero_literal.shape(), "zero"); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xrt/tests/
Draw_api_test.cc2170 auto zero_literal = xla::LiteralUtil::CreateR0<xla::int32>(0); in TEST() local
2184 EXPECT_EQ(literal, zero_literal); in TEST()