MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / One

Method One

tensorflow/compiler/tf2xla/xla_helpers.cc:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43xla::XlaOp XlaHelpers::One(xla::XlaBuilder* b, DataType data_type) {
44 xla::PrimitiveType type;
45 TF_CHECK_OK(DataTypeToPrimitiveType(data_type, &type));
46 return xla::ConstantLiteral(b, xla::LiteralUtil::One(type));
47}
48
49xla::XlaOp XlaHelpers::IntegerLiteral(xla::XlaBuilder* b, DataType data_type,
50 int64 value) {

Callers

nothing calls this directly

Calls 3

DataTypeToPrimitiveTypeFunction · 0.85
ConstantLiteralFunction · 0.85
OneFunction · 0.50

Tested by

no test coverage detected