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

Function MakeFakeLiteral

tensorflow/compiler/xla/tests/test_utils.cc:664–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662} // namespace
663
664StatusOr<Literal> MakeFakeLiteral(const Shape& shape, bool pseudo_random,
665 bool use_large_range) {
666 auto engine =
667 pseudo_random ? absl::make_unique<std::minstd_rand0>() : nullptr;
668 return MakeFakeLiteralInternal(shape, engine.get(), /*no_duplicates=*/false,
669 use_large_range);
670}
671
672StatusOr<std::vector<Literal>> MakeFakeArguments(HloModule* const module,
673 bool pseudo_random,

Callers 3

ReplayComputationFunction · 0.85
MakeFakeDataOrDieFunction · 0.85
XLA_TEST_PFunction · 0.85

Calls 2

MakeFakeLiteralInternalFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected