aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/ops_testutil.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-12-21 14:20:19 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-21 14:25:55 -0800
commit8464d0516d3f2c857723aa4c42fb1947e6c480d8 (patch)
treee8883765dc91b3959dbf27511ca531f648a34079 /tensorflow/core/kernels/ops_testutil.h
parent10659b0c6b9bee6aac930bd642e307ba68666c05 (diff)
Populates step_container in ops_testutil.
Change: 142700768
Diffstat (limited to 'tensorflow/core/kernels/ops_testutil.h')
-rw-r--r--tensorflow/core/kernels/ops_testutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/ops_testutil.h b/tensorflow/core/kernels/ops_testutil.h
index 3baae914cb..96de4094fe 100644
--- a/tensorflow/core/kernels/ops_testutil.h
+++ b/tensorflow/core/kernels/ops_testutil.h
@@ -25,6 +25,7 @@ limitations under the License.
#include "tensorflow/core/framework/device_base.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/framework/op_kernel.h"
+#include "tensorflow/core/framework/resource_mgr.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_testutil.h"
#include "tensorflow/core/framework/types.h"
@@ -181,6 +182,8 @@ class OpsTestBase : public ::testing::Test {
params_.get()->frame_iter = FrameAndIter(0, 0);
params_.get()->inputs = &inputs_;
params_.get()->op_kernel = kernel_.get();
+ step_container_.reset(new ScopedStepContainer(0, [](const string&) {}));
+ params_->step_container = step_container_.get();
std::vector<AllocatorAttributes> attrs;
test::SetOutputAttrs(params_.get(), &attrs);
checkpoint::TensorSliceReaderCacheWrapper slice_reader_cache_wrapper;
@@ -223,6 +226,7 @@ class OpsTestBase : public ::testing::Test {
std::unique_ptr<Device> device_;
std::unique_ptr<OpKernel> kernel_;
+ std::unique_ptr<ScopedStepContainer> step_container_;
NodeDef node_def_;
DataTypeVector input_types_;
DeviceType device_type_;