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

Method CreateFromArray

tensorflow/compiler/xla/literal_util.h:413–417  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

411
412template <typename NativeT>
413/* static */ Literal LiteralUtil::CreateFromArray(
414 const Array<NativeT>& values) {
415 return CreateFromArrayWithLayout(
416 values, LayoutUtil::GetDefaultLayoutForRank(values.num_dimensions()));
417}
418
419template <typename NativeT>
420/* static */ Literal LiteralUtil::CreateR2FromArray2DWithLayout(

Callers

nothing calls this directly

Calls 1

num_dimensionsMethod · 0.80

Tested by

no test coverage detected