Remove references to gtl::vector_as_array method
PiperOrigin-RevId: 266455167
This commit is contained in:
parent
37479ad906
commit
39684f22f7
@ -33,7 +33,6 @@ limitations under the License.
|
||||
#include "tensorflow/core/lib/core/errors.h"
|
||||
#include "tensorflow/core/lib/core/refcount.h"
|
||||
#include "tensorflow/core/lib/gtl/map_util.h"
|
||||
#include "tensorflow/core/lib/gtl/stl_util.h"
|
||||
#include "tensorflow/core/lib/random/random.h"
|
||||
#include "tensorflow/core/platform/fingerprint.h"
|
||||
#include "tensorflow/core/platform/mutex.h"
|
||||
@ -279,7 +278,7 @@ Status KernelAndDeviceOp::Run(ScopedStepContainer* step_container,
|
||||
params.op_kernel = kernel_.get();
|
||||
params.resource_manager = device_->resource_manager();
|
||||
params.input_alloc_attrs = &in_attrs;
|
||||
params.output_attr_array = gtl::vector_as_array(&out_attrs);
|
||||
params.output_attr_array = out_attrs.data();
|
||||
params.function_library = flr_;
|
||||
params.slice_reader_cache = &slice_reader_cache_;
|
||||
params.rendezvous = rendez_;
|
||||
|
@ -28,7 +28,6 @@ limitations under the License.
|
||||
#include "tensorflow/core/graph/node_builder.h"
|
||||
#include "tensorflow/core/lib/core/notification.h"
|
||||
#include "tensorflow/core/lib/core/status_test_util.h"
|
||||
#include "tensorflow/core/lib/gtl/stl_util.h"
|
||||
#include "tensorflow/core/platform/stream_executor.h"
|
||||
#include "tensorflow/core/platform/test.h"
|
||||
#include "tensorflow/core/platform/test_benchmark.h"
|
||||
@ -417,7 +416,7 @@ class EMBenchmarkHelper {
|
||||
attr.set_on_host(on_host);
|
||||
attrs->push_back(attr);
|
||||
}
|
||||
params->output_attr_array = gtl::vector_as_array(attrs);
|
||||
params->output_attr_array = attrs->data();
|
||||
params->forward_from_array = {};
|
||||
}
|
||||
|
||||
|
@ -532,7 +532,7 @@ Status DatasetOpsTestBase::CreateOpKernelContext(
|
||||
attr.set_on_host(on_host);
|
||||
allocator_attrs_.emplace_back(attr);
|
||||
}
|
||||
params_->output_attr_array = gtl::vector_as_array(&allocator_attrs_);
|
||||
params_->output_attr_array = allocator_attrs_.data();
|
||||
|
||||
*context = absl::make_unique<OpKernelContext>(params_.get());
|
||||
return Status::OK();
|
||||
|
@ -61,7 +61,7 @@ inline void SetOutputAttrs(OpKernelContext::Params* params,
|
||||
attr.set_on_host(on_host);
|
||||
attrs->push_back(attr);
|
||||
}
|
||||
params->output_attr_array = gtl::vector_as_array(attrs);
|
||||
params->output_attr_array = attrs->data();
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
|
Loading…
Reference in New Issue
Block a user