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

Function MakeConstrainedArgument

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

Given a module entry parameter, use the dataflow analysis to see if a special case literal must be created, or if we can generate fake data.

Source from the content-addressed store, hash-verified

651// Given a module entry parameter, use the dataflow analysis to see if a
652// special case literal must be created, or if we can generate fake data.
653StatusOr<Literal> MakeConstrainedArgument(const HloDataflowAnalysis& dataflow,
654 const HloInstruction& param,
655 std::minstd_rand0* engine,
656 bool use_large_range) {
657 const auto constrained_uses = FindConstrainedUses(dataflow, param);
658 return CreateLiteralForConstrainedUses(constrained_uses, param, engine,
659 use_large_range);
660}
661
662} // namespace
663

Callers 1

MakeFakeArgumentsFunction · 0.85

Calls 2

FindConstrainedUsesFunction · 0.85

Tested by

no test coverage detected