Skip to content

Commit 398fd3d

Browse files
charlesalarascopybara-github
authored andcommitted
⌨️ Fix Typo: MemmoryMemory
PiperOrigin-RevId: 832504074
1 parent fa1af09 commit 398fd3d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

xprof/utils/performance_info_wrapper.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ limitations under the License.
3232
namespace tensorflow {
3333
namespace profiler {
3434

35-
MemoryAccessBreakdown PerformanceInfoWrapper::GetMemmoryAccessBreakdown()
36-
const {
35+
MemoryAccessBreakdown PerformanceInfoWrapper::GetMemoryAccessBreakdown() const {
3736
MemoryAccessBreakdown breakdown;
3837
for (const auto& m : performance_info_->memory_accessed_breakdown()) {
3938
auto* memory_access = breakdown.add_memory_accessed();

xprof/utils/performance_info_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class PerformanceInfoWrapper {
7171

7272
// Convert XLA's memory access breakdown into TF's counterpart.
7373
// TODO(b/408280338) code cleanup.
74-
tensorflow::profiler::MemoryAccessBreakdown GetMemmoryAccessBreakdown() const;
74+
tensorflow::profiler::MemoryAccessBreakdown GetMemoryAccessBreakdown() const;
7575

7676
private:
7777
PerformanceInfoWrapper(std::unique_ptr<PerfInfoType> performance_info,

xprof/utils/performance_info_wrapper_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TEST(PerformanceInfoWrapper, TestMemoryAccessed) {
130130
std::unique_ptr<PerformanceInfoWrapper> performance_info_wrapper =
131131
PerformanceInfoWrapper::Create(std::move(performance_info));
132132
#if defined(PLATFORM_GOOGLE)
133-
EXPECT_THAT(performance_info_wrapper->GetMemmoryAccessBreakdown(),
133+
EXPECT_THAT(performance_info_wrapper->GetMemoryAccessBreakdown(),
134134
IgnoringRepeatedFieldOrdering(EqualsProto(R"pb(
135135
memory_accessed {
136136
operation_type: READ

0 commit comments

Comments
 (0)