Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 620557415
  • Loading branch information
tensorflower-gardener committed Apr 2, 2024
1 parent 4b642c5 commit 76272e8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void EagerClusterFunctionLibraryRuntime::Instantiate(

void EagerClusterFunctionLibraryRuntime::Run(
const FunctionLibraryRuntime::Options& opts,
FunctionLibraryRuntime::LocalHandle handle, gtl::ArraySlice<Tensor> args,
FunctionLibraryRuntime::LocalHandle handle, absl::Span<const Tensor> args,
std::vector<Tensor>* rets, FunctionLibraryRuntime::DoneCallback done) {
std::vector<FunctionArg> function_args;
for (const auto& tensor : args) {
Expand Down Expand Up @@ -143,7 +143,7 @@ void EagerClusterFunctionLibraryRuntime::Run(
void EagerClusterFunctionLibraryRuntime::Run(
const FunctionLibraryRuntime::Options& opts,
FunctionLibraryRuntime::LocalHandle handle,
gtl::ArraySlice<FunctionArg> args, std::vector<FunctionRet>* rets,
absl::Span<const FunctionArg> args, std::vector<FunctionRet>* rets,
FunctionLibraryRuntime::DoneCallback done) {
FunctionData* function_data = nullptr;
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ class EagerClusterFunctionLibraryRuntime
// (i.e., the done callbacks triggered) before finishing its execution.
void Run(const FunctionLibraryRuntime::Options& opts,
FunctionLibraryRuntime::LocalHandle handle,
gtl::ArraySlice<Tensor> args, std::vector<Tensor>* rets,
absl::Span<const Tensor> args, std::vector<Tensor>* rets,
FunctionLibraryRuntime::DoneCallback done) override;

// The component function inputs `args` and outputs `rets` may refer to remote
// tensors on a remote device, which will be lazily resolved remotely where
// the inputs/outputs are actually consumed.
void Run(const FunctionLibraryRuntime::Options& opts,
FunctionLibraryRuntime::LocalHandle handle,
gtl::ArraySlice<FunctionArg> args, std::vector<FunctionRet>* rets,
absl::Span<const FunctionArg> args, std::vector<FunctionRet>* rets,
FunctionLibraryRuntime::DoneCallback done) override;

void CleanUp(uint64 step_id, FunctionLibraryRuntime::LocalHandle handle,
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/core/distributed_runtime/eager/remote_mgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Status WithErrorSourcePayload(Status error) {
namespace eager {

void RemoteMgr::AddOperationOutputs(
const gtl::ArraySlice<tensorflow::TensorHandle*> handles,
const absl::Span<tensorflow::TensorHandle* const> handles,
int64_t operation_id) {
mutex_lock l(remote_tensor_handle_mu_);
for (int i = 0, end = handles.size(); i < end; i++) {
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/core/distributed_runtime/eager/remote_mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class RemoteMgr {
bool IsMaster() { return is_master_; }

void AddOperationOutputs(
const gtl::ArraySlice<tensorflow::TensorHandle*> handles,
const absl::Span<tensorflow::TensorHandle* const> handles,
int64_t operation_id);

void AddOperationOutput(tensorflow::TensorHandle* handles,
Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/ifrt/mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class MockArray final : public llvm::RTTIExtends<MockArray, Array> {
(const, final));
MOCK_METHOD(absl::StatusOr<std::unique_ptr<PjRtLayout>>, layout, (),
(const, final));
MOCK_METHOD(StatusOr<std::vector<tsl::RCReference<Array>>>,
MOCK_METHOD(absl::StatusOr<std::vector<tsl::RCReference<Array>>>,
DisassembleIntoSingleDeviceArrays, (ArrayCopySemantics semantics),
(final));
MOCK_METHOD(absl::StatusOr<tsl::RCReference<Array>>, FullyReplicatedShard,
Expand Down

0 comments on commit 76272e8

Please sign in to comment.