Remove references to gtl::vector_as_array method

PiperOrigin-RevId: 266455167
This commit is contained in:
Gunhan Gulsoy 2019-08-30 14:22:24 -07:00 committed by TensorFlower Gardener
parent 37479ad906
commit 39684f22f7
4 changed files with 4 additions and 6 deletions

View File

@ -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_;

View File

@ -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 = {};
}

View File

@ -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();

View File

@ -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