| 662 | } // namespace |
| 663 | |
| 664 | StatusOr<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 | |
| 672 | StatusOr<std::vector<Literal>> MakeFakeArguments(HloModule* const module, |
| 673 | bool pseudo_random, |
no test coverage detected