diff --git a/tensorflow/python/ops/conv2d_benchmark.py b/tensorflow/python/ops/conv2d_benchmark.py index 28111c27305..f40488afbe0 100644 --- a/tensorflow/python/ops/conv2d_benchmark.py +++ b/tensorflow/python/ops/conv2d_benchmark.py @@ -63,9 +63,9 @@ def build_graph(device, dtype, data_format, input_shape, filter_shape, strides, An array of tensors to run() """ with ops.device("/%s:0" % device): - inp = variables.Variable( + inp = variables.VariableV1( random_ops.truncated_normal(input_shape, dtype=dtype)) - filt = variables.Variable( + filt = variables.VariableV1( random_ops.truncated_normal(filter_shape, dtype=dtype)) outputs = []