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

Function ConstantFromArray

tensorflow/compiler/xla/client/xla_builder.h:2108–2111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2106
2107template <typename NativeT>
2108XlaOp ConstantFromArray(XlaBuilder* builder, const Array<NativeT>& values) {
2109 return ConstantLiteral(builder,
2110 LiteralUtil::CreateFromArray<NativeT>(values));
2111}
2112
2113template <typename NativeT>
2114XlaOp ConstantR2FromArray2DWithLayout(XlaBuilder* builder,

Callers 3

ConstantR3FromArray3DFunction · 0.85
ConstantR4FromArray4DFunction · 0.85
XLA_TEST_PFunction · 0.85

Calls 1

ConstantLiteralFunction · 0.85

Tested by 1

XLA_TEST_PFunction · 0.68