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

Method Set

tensorflow/compiler/xla/literal.h:864–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862
863template <typename NativeT>
864void LiteralBase::Piece::Set(absl::Span<const int64> multi_index,
865 NativeT value) {
866 CHECK(LayoutUtil::IsDenseArray(subshape()));
867 data<NativeT>()[IndexUtil::MultidimensionalIndexToLinearIndex(
868 subshape(), multi_index)] = value;
869}
870
871template <typename NativeT>
872absl::Span<const NativeT> LiteralBase::data(

Callers 15

DoComputeMethod · 0.45
TEST_FFunction · 0.45
SetDefaultLayoutOnProtoFunction · 0.45
CreateR0Method · 0.45
PopulateFromArrayMethod · 0.45
decodeTensorFunction · 0.45
decodeMethod · 0.45
TF_AttrBuilderSetTypeFunction · 0.45
OpInferSingleInputAttrsFunction · 0.45

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.36
SetDefaultLayoutOnProtoFunction · 0.36