Skip to content

Commit 5abbf91

Browse files
Merge pull request #3197 from ROCm/develop-upstream-sync-260316
Develop upstream sync 260316
2 parents ffe03e3 + d8b0e4d commit 5abbf91

530 files changed

Lines changed: 10285 additions & 6570 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ci/official/envs/linux_arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ TFCI_OUTPUT_DIR=build_output
2828
TFCI_WHL_AUDIT_ENABLE=1
2929
TFCI_WHL_AUDIT_PLAT=manylinux_2_27_aarch64
3030
TFCI_WHL_BAZEL_TEST_ENABLE=1
31-
TFCI_WHL_SIZE_LIMIT=275M
31+
TFCI_WHL_SIZE_LIMIT=300M
3232
TFCI_WHL_SIZE_LIMIT_ENABLE=1

ci/official/envs/linux_x86

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ TFCI_OUTPUT_DIR=build_output
2525
TFCI_WHL_AUDIT_ENABLE=1
2626
TFCI_WHL_AUDIT_PLAT=manylinux_2_27_x86_64
2727
TFCI_WHL_BAZEL_TEST_ENABLE=1
28-
TFCI_WHL_SIZE_LIMIT=265M
28+
TFCI_WHL_SIZE_LIMIT=300M
2929
TFCI_WHL_SIZE_LIMIT_ENABLE=1

tensorflow/cc/framework/cc_op_gen.cc

Lines changed: 123 additions & 123 deletions
Large diffs are not rendered by default.

tensorflow/cc/framework/cc_op_gen.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ namespace tensorflow {
2626
namespace cc_op {
2727
/// Result is written to files dot_h and dot_cc.
2828
void WriteCCOps(const OpList& ops, const ApiDefMap& api_def_map,
29-
const string& dot_h_fname, const string& dot_cc_fname);
29+
const std::string& dot_h_fname,
30+
const std::string& dot_cc_fname);
3031

3132
} // namespace cc_op
3233
} // namespace tensorflow

tensorflow/cc/framework/cc_op_gen_main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace {
3434

3535
void PrintAllCCOps(const std::string& dot_h, const std::string& dot_cc,
3636
bool include_internal,
37-
const std::vector<string>& api_def_dirs) {
37+
const std::vector<std::string>& api_def_dirs) {
3838
OpList ops;
3939
absl::StatusOr<ApiDefMap> api_def_map =
4040
LoadOpsAndApiDefs(ops, include_internal, api_def_dirs);
@@ -62,7 +62,7 @@ int main(int argc, char* argv[]) {
6262
}
6363

6464
bool include_internal = absl::string_view("1") == argv[3];
65-
std::vector<tensorflow::string> api_def_dirs = tensorflow::str_util::Split(
65+
std::vector<std::string> api_def_dirs = tensorflow::str_util::Split(
6666
argv[4], ",", tensorflow::str_util::SkipEmpty());
6767
tensorflow::cc_op::PrintAllCCOps(argv[1], argv[2], include_internal,
6868
api_def_dirs);

tensorflow/cc/framework/cc_op_gen_test.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ void ExpectDoesNotHaveSubstr(absl::string_view s, absl::string_view expected) {
7171
<< "'" << s << "' contains '" << expected << "'";
7272
}
7373

74-
void ExpectSubstrOrder(const string& s, const string& before,
75-
const string& after) {
74+
void ExpectSubstrOrder(const std::string& s, const std::string& before,
75+
const std::string& after) {
7676
int before_pos = s.find(before);
7777
int after_pos = s.find(after);
7878
ASSERT_NE(std::string::npos, before_pos);
@@ -84,9 +84,9 @@ void ExpectSubstrOrder(const string& s, const string& before,
8484
// Runs WriteCCOps and stores output in (internal_)cc_file_path and
8585
// (internal_)h_file_path.
8686
void GenerateCcOpFiles(Env* env, const OpList& ops,
87-
const ApiDefMap& api_def_map, string* h_file_text,
88-
string* internal_h_file_text) {
89-
const string& tmpdir = testing::TmpDir();
87+
const ApiDefMap& api_def_map, std::string* h_file_text,
88+
std::string* internal_h_file_text) {
89+
const std::string& tmpdir = testing::TmpDir();
9090

9191
const auto h_file_path = io::JoinPath(tmpdir, "test.h");
9292
const auto cc_file_path = io::JoinPath(tmpdir, "test.cc");
@@ -101,7 +101,7 @@ void GenerateCcOpFiles(Env* env, const OpList& ops,
101101
}
102102

103103
TEST(CcOpGenTest, TestVisibilityChangedToHidden) {
104-
const string api_def = R"(
104+
const std::string api_def = R"(
105105
op {
106106
graph_op_name: "Foo"
107107
visibility: HIDDEN
@@ -112,7 +112,7 @@ op {
112112
protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); // NOLINT
113113
ApiDefMap api_def_map(op_defs);
114114

115-
string h_file_text, internal_h_file_text;
115+
std::string h_file_text, internal_h_file_text;
116116
// Without ApiDef
117117
GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
118118
&internal_h_file_text);
@@ -128,7 +128,7 @@ op {
128128
}
129129

130130
TEST(CcOpGenTest, TestArgNameChanges) {
131-
const string api_def = R"(
131+
const std::string api_def = R"(
132132
op {
133133
graph_op_name: "Foo"
134134
arg_order: "dim"
@@ -140,8 +140,8 @@ op {
140140
protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); // NOLINT
141141

142142
ApiDefMap api_def_map(op_defs);
143-
string cc_file_text, h_file_text;
144-
string internal_cc_file_text, internal_h_file_text;
143+
std::string cc_file_text, h_file_text;
144+
std::string internal_cc_file_text, internal_h_file_text;
145145
// Without ApiDef
146146
GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
147147
&internal_h_file_text);
@@ -155,7 +155,7 @@ op {
155155
}
156156

157157
TEST(CcOpGenTest, TestEndpoints) {
158-
const string api_def = R"(
158+
const std::string api_def = R"(
159159
op {
160160
graph_op_name: "Foo"
161161
endpoint {
@@ -171,8 +171,8 @@ op {
171171
protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); // NOLINT
172172

173173
ApiDefMap api_def_map(op_defs);
174-
string cc_file_text, h_file_text;
175-
string internal_cc_file_text, internal_h_file_text;
174+
std::string cc_file_text, h_file_text;
175+
std::string internal_cc_file_text, internal_h_file_text;
176176
// Without ApiDef
177177
GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
178178
&internal_h_file_text);

0 commit comments

Comments
 (0)