Benign repos Download

collective_ops_sharded_unsharded_e2e_test.cc

imports tsl/platform/regexp.himports xla/tsl/platform/statusor.h
SHA-2566e052ca01f8f310b7ffb4b93c463500371bc89f27bddbe747cb081bc375be51e

Evidence

apache web server name lines 1–10
1/* Copyright 2023 The OpenXLA Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
imports tsl/platform/regexp.h lines 11–48
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include <cstdint>
17#include <functional>
18#include <memory>
19#include <string>
20#include <utility>
21#include <vector>
22
23#include "absl/algorithm/container.h"
24#include "absl/log/check.h"
25#include "absl/log/log.h"
26#include "absl/status/statusor.h"
27#include "absl/strings/string_view.h"
28#include "absl/types/span.h"
29#include "xla/error_spec.h"
30#include "xla/hlo/ir/hlo_sharding.h"
31#include "xla/hlo/parser/hlo_parser.h"
32#include "xla/hlo/testlib/verified_hlo_module.h"
33#include "xla/literal.h"
34#include "xla/service/gpu/backend_configs.pb.h"
35#include "xla/service/gpu/tests/collective_ops_e2e_test_base.h"
36#include "xla/service/hlo_module_config.h"
37#include "xla/tests/literal_test_util.h"
38#include "xla/tests/test_utils.h"
39#include "xla/tsl/platform/statusor.h"
40#include "xla/tsl/platform/test.h"
41#include "xla/xla_data.pb.h"
42#include "tsl/platform/regexp.h"
43
44namespace xla {
⋯4 lines
C/C++ unit-test ASSERT_EQ marker lines 65–70
65:17… ector<Literal>& ref_results = ref_execution_result.results;
66 ASSERT_EQ(ref_results.size(), 1);
67
68 TF_ASSERT_OK_AND_ASSIGN(
69 ExecutionResult execution_result,
70 ExecuteSharded(hlo_text …
C/C++ unit-test EXPECT_TRUE marker lines 210–213
210:17… ref_results_slice = ref_results[0].Slice(lower, upper);
211 EXPECT_TRUE(
212 LiteralTestUtil::Near(ref_results_slice, result, error_spec));
213 for (int m = root_sharded_dims.size() - 1; …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.