Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 658310275
  • Loading branch information
tensorflower-gardener committed Aug 1, 2024
1 parent be7b1f1 commit 005d296
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions third_party/xla/xla/service/cpu/runtime/collective_thunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ const Shape& CollectiveThunk::source_shape(int64_t index) const {
return op_buffers_.source_shapes[index];
}

absl::Span<const Shape> CollectiveThunk::source_shapes() const {
return op_buffers_.source_shapes;
}

const BufferAllocation::Slice& CollectiveThunk::destination_buffer(
int64_t index) const {
return op_buffers_.destination_buffers[index];
Expand All @@ -223,8 +219,4 @@ const Shape& CollectiveThunk::destination_shape(int64_t index) const {
return op_buffers_.destination_shapes[index];
}

absl::Span<const Shape> CollectiveThunk::destination_shapes() const {
return op_buffers_.destination_shapes;
}

} // namespace xla::cpu
3 changes: 0 additions & 3 deletions third_party/xla/xla/service/cpu/runtime/collective_thunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class CollectiveThunk : public Thunk {
OpBuffers op_buffers, OpResources op_resources);

const OpParams& op_params() const { return op_params_; }
const OpBuffers& op_buffers() const { return op_buffers_; }

// Resolves operation's device memory from the buffers and buffer allocations.
absl::StatusOr<OpDeviceMemory> GetOpDeviceMemory(const ExecuteParams& params);
Expand Down Expand Up @@ -109,13 +108,11 @@ class CollectiveThunk : public Thunk {
absl::Span<const BufferAllocation::Slice> source_buffers() const;

const Shape& source_shape(int64_t index) const;
absl::Span<const Shape> source_shapes() const;

const BufferAllocation::Slice& destination_buffer(int64_t index) const;
absl::Span<const BufferAllocation::Slice> destination_buffers() const;

const Shape& destination_shape(int64_t index) const;
absl::Span<const Shape> destination_shapes() const;

private:
OpParams op_params_;
Expand Down

0 comments on commit 005d296

Please sign in to comment.