Benign repos Download

sharding_util.cc

imports xla/tsl/platform/statusor.hC declares a character or byte buffer
SHA-256e0a2e27e32a76508c9915663f8db23e71189a513ec02b35b3e121bd69393e5ea
MaleculeH(Db)Md(In)

Evidence

apache web server name lines 1–10
1/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
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 xla/tsl/platform/statusor.h lines 11–45
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15#include "tensorflow/compiler/tf2xla/sharding_util.h"
16
17#include <optional>
18#include <string>
19
20#include "absl/status/status.h"
21#include "absl/status/statusor.h"
22#include "absl/strings/match.h"
23#include "absl/strings/str_cat.h"
24#include "tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h"
25#include "xla/hlo/builder/xla_builder.h"
26#include "xla/hlo/ir/hlo_sharding.h"
27#include "xla/service/spmd/shardy/stablehlo_round_trip/stablehlo_import.h"
28#include "xla/shape.h"
29#include "xla/tsl/platform/statusor.h"
30#include "tensorflow/core/framework/node_def.pb.h"
31#include "tensorflow/core/lib/core/errors.h"
32#include "tensorflow/core/util/device_name_utils.h"
33
34namespace tensorflow {
35namespace {
36const char kDeviceSuffixReplicatedCore[] = "REPLICATED_CORE";
37const char kShardingAttribute[] = "_XlaSharding";
38const char kShardingAttributeV2[] = "_XlaShardingV2";
39const char kXlaShardingOp[] = "XlaSharding";
40const char kShardingOpAttribute[] = "sharding";
41} // namespace
42
43namespace {
44xla::OpMetadata CreateOpMetadata(const std::string& op_type,
45 …

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.