Home
last modified time | relevance | path

Searched refs:reshape_dims (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dadjust_contrast_op.h52 Eigen::Tensor<int, 4>::Dimensions reshape_dims; in operator() local
53 reshape_dims[0] = batch; in operator()
54 reshape_dims[1] = 1; in operator()
55 reshape_dims[2] = 1; in operator()
56 reshape_dims[3] = channels; in operator()
65 reshape_dims; in operator() local
66 reshape_dims.set(0, batch); in operator()
67 reshape_dims.set(3, channels); in operator()
74 .reshape(reshape_dims) in operator()
114 Eigen::Tensor<int, 4>::Dimensions reshape_dims; in operator() local
[all …]
Dcwise_op_gpu_select.cu.cc69 Eigen::Tensor<int, 2>::Dimensions reshape_dims{{ batch, 1 }}; in operator ()() local
73 Eigen::IndexList<int, Eigen::type2index<1> > reshape_dims; in operator ()() local
74 reshape_dims.set(0, batch); in operator ()()
86 cond_vec.reshape(reshape_dims) in operator ()()
Dgather_nd_op_cpu_impl.h107 Eigen::Tensor<Eigen::DenseIndex, 1>::Dimensions reshape_dims{{ 1 }};
110 Eigen::IndexList<Eigen::type2index<1> > reshape_dims;
130 Tscratch.device(d) = Tscratch.reshape(reshape_dims)
Dcwise_op_select.cc270 Eigen::Tensor<Eigen::DenseIndex, 2>::Dimensions reshape_dims{{batch, 1}}; in operator ()() local
274 Eigen::IndexList<Eigen::DenseIndex, Eigen::type2index<1> > reshape_dims; in operator ()() local
275 reshape_dims.set(0, batch); in operator ()()
279 cond_vec.reshape(reshape_dims) in operator ()()
Deigen_spatial_convolutions_test.cc1490 NewDimension reshape_dims; in PackRhsHelper() local
1491 reshape_dims[0] = input_depth * filter_rows * filter_cols; // patch size in PackRhsHelper()
1492 reshape_dims[1] = output_rows * output_cols * input_batches; // num_patches in PackRhsHelper()
1496 image_patch_op, reshape_dims); in PackRhsHelper()
1626 NewDimension reshape_dims; in PackLhsHelper() local
1627 reshape_dims[0] = filter_count; in PackLhsHelper()
1628 reshape_dims[1] = input_depth * filter_rows * filter_cols; in PackLhsHelper()
1662 TensorReshapingOp<NewDimension, ArgType>(tensor_map, reshape_dims); in PackLhsHelper()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dconvert_expanddims_to_reshape.cc58 std::vector<int> reshape_dims(input_array.shape().dims()); in Run() local
60 axis = reshape_dims.size(); in Run()
62 reshape_dims.insert(reshape_dims.begin() + axis, 1); in Run()
77 1, static_cast<int>(reshape_dims.size())}; in Run()
81 shape_buffer.data = reshape_dims; in Run()
Dconvert_reorder_axes.cc40 std::vector<int> reshape_dims = {1, input_shape.dims(0), input_shape.dims(1), in CreateReshapeFromReorderAxes() local
50 1, static_cast<int>(reshape_dims.size())}; in CreateReshapeFromReorderAxes()
54 reshape_buffer.data = reshape_dims; in CreateReshapeFromReorderAxes()
/external/eigen/unsupported/test/
Dcxx11_tensor_padding.cpp63 Eigen::DSizes<ptrdiff_t, 2> reshape_dims; in test_padded_expr() local
64 reshape_dims[0] = 12; in test_padded_expr()
65 reshape_dims[1] = 84; in test_padded_expr()
68 result = tensor.pad(paddings).reshape(reshape_dims); in test_padded_expr()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dquantize_nodes.cc742 NodeDef reshape_dims; in QuantizeNodes() local
743 reshape_dims.set_op("Const"); in QuantizeNodes()
744 reshape_dims.set_name(unique_input_name + "/reshape_dims"); in QuantizeNodes()
745 AddNodeInput("^" + NodeNameFromInput(input_name), &reshape_dims); in QuantizeNodes()
746 SetNodeAttr("dtype", DT_INT32, &reshape_dims); in QuantizeNodes()
749 SetNodeTensorAttr<int32>("value", reshape_dims_tensor, &reshape_dims); in QuantizeNodes()
750 new_nodes->push_back(reshape_dims); in QuantizeNodes()
768 AddNodeInput(reshape_dims.name(), &reshape_node); in QuantizeNodes()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes.cc1180 nvinfer1::Dims reshape_dims; in TransposeTensor() local
1181 reshape_dims.nbDims = dims.nbDims; in TransposeTensor()
1182 for (int32_t i = 0; i < reshape_dims.nbDims; ++i) { in TransposeTensor()
1183 reshape_dims.d[i] = 0; in TransposeTensor()
1185 reshape_dims.type[i] = dims.type[i]; in TransposeTensor()
1187 layer->setReshapeDimensions(reshape_dims); in TransposeTensor()
2131 nvinfer1::Dims reshape_dims; in ConvertReshape() local
2132 reshape_dims.nbDims = weights.count() - 1; in ConvertReshape()
2134 reshape_dims.d[i - 1] = weights_ptr[i]; in ConvertReshape()
2143 TrtDimsNumElements(reshape_dims) != TrtDimsNumElements(input_dims)) { in ConvertReshape()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dresampler_ops.cc264 std::vector<int64> reshape_dims(warp_shape.dims()); in CalculateGradData() local
265 std::iota(reshape_dims.begin(), reshape_dims.end(), 0); in CalculateGradData()
267 auto reshaped_weights = xla::Reshape(weights, /*dimensions=*/reshape_dims, in CalculateGradData()