Home
last modified time | relevance | path

Searched refs:tensor_format (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/python/debug/cli/
Dtensor_format_test.py28 from tensorflow.python.debug.cli import tensor_format
73 self.assertEqual({tensor_format.BEGIN_INDICES_KEY: subscripts},
105 tensor_format.locate_tensor_element(out, subscripts))
143 out = tensor_format.format_tensor(a, "a")
153 out = tensor_format.format_tensor(
161 out = tensor_format.format_tensor(
171 out = tensor_format.format_tensor(
186 out = tensor_format.format_tensor(a, "a")
198 out = tensor_format.format_tensor(a, None)
207 out = tensor_format.format_tensor(a, "a", include_metadata=True)
[all …]
Dcli_shared.py27 from tensorflow.python.debug.cli import tensor_format
137 return tensor_format.HighlightOptions(
208 return tensor_format.format_tensor(
Dstepper_cli.py28 from tensorflow.python.debug.cli import tensor_format
429 tensor_format.format_tensor(
593 tensor_lines = tensor_format.format_tensor(
Dcurses_ui.py35 from tensorflow.python.debug.cli import tensor_format
710 omitted, line_index, _, _ = tensor_format.locate_tensor_element(
Dcurses_ui_test.py31 from tensorflow.python.debug.cli import tensor_format
304 return tensor_format.format_tensor(m, "m")
/external/tensorflow/tensorflow/core/kernels/
Dfused_batch_norm_op.cc73 Tensor* saved_var_output, TensorFormat tensor_format, in operator ()()
75 OP_REQUIRES(context, tensor_format == FORMAT_NHWC, in operator ()()
160 TensorFormat tensor_format) { in operator ()()
161 OP_REQUIRES(context, tensor_format == FORMAT_NHWC, in operator ()()
247 Tensor* saved_inv_var, TensorFormat tensor_format, in operator ()()
252 const int64 batch_size = GetTensorDim(x, tensor_format, 'N'); in operator ()()
253 const int64 channels = GetTensorDim(x, tensor_format, 'C'); in operator ()()
254 const int64 height = GetTensorDim(x, tensor_format, 'H'); in operator ()()
255 const int64 width = GetTensorDim(x, tensor_format, 'W'); in operator ()()
262 << " tensor format: " << tensor_format; in operator ()()
[all …]
Dmkl_fused_batch_norm_op.cc503 string tensor_format; in MklFusedBatchNormOp() local
504 OP_REQUIRES_OK(context, context->GetAttr("data_format", &tensor_format)); in MklFusedBatchNormOp()
505 OP_REQUIRES(context, FormatFromString(tensor_format, &tensor_format_), in MklFusedBatchNormOp()
826 string tensor_format; in MklFusedBatchNormGradOp() local
827 OP_REQUIRES_OK(context, context->GetAttr("data_format", &tensor_format)); in MklFusedBatchNormGradOp()
828 OP_REQUIRES(context, FormatFromString(tensor_format, &tensor_format_), in MklFusedBatchNormGradOp()
/external/tensorflow/tensorflow/core/util/
Dtensor_format.h426 TensorFormat tensor_format, char dimension) { in GetTensorDim() argument
428 GetTensorDimIndex(tensor_format, dimension, dimension_attributes.size()); in GetTensorDim()
456 TensorFormat tensor_format, char dimension) { in GetTensorDim() argument
458 tensor_format, dimension); in GetTensorDim()
472 inline int64 GetTensorDim(const Tensor& tensor, TensorFormat tensor_format, in GetTensorDim() argument
474 return GetTensorDim(tensor.shape(), tensor_format, dimension); in GetTensorDim()
486 const std::vector<int64>& explicit_paddings, TensorFormat tensor_format, in GetExplicitPaddingForDim() argument
489 GetTensorDimIndex(tensor_format, dimension, explicit_paddings.size() / 2); in GetExplicitPaddingForDim()
/external/tensorflow/tensorflow/python/debug/
DBUILD213 name = "tensor_format",
214 srcs = ["cli/tensor_format.py"],
231 ":tensor_format",
297 ":tensor_format",
331 ":tensor_format",
393 ":tensor_format",
735 ":tensor_format",
929 ":tensor_format",
/external/tensorflow/tensorflow/core/framework/
Dcommon_shape_fns.cc312 Status CheckFormatConstraintsOnShape(const TensorFormat tensor_format, in CheckFormatConstraintsOnShape() argument
316 if (tensor_format == FORMAT_NCHW_VECT_C) { in CheckFormatConstraintsOnShape()
320 shape_handle, GetTensorInnerFeatureDimIndex(num_dims, tensor_format)); in CheckFormatConstraintsOnShape()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_dnn.cc1229 cudnnTensorFormat_t tensor_format; in Create() local
1234 /*dataType=*/&data_type, /*format=*/&tensor_format, in Create()
/external/tensorflow/tensorflow/core/
DBUILD964 "util/tensor_format.h",