Home
last modified time | relevance | path

Searched refs:ReplaceDim (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/core/ops/
Dbatch_ops.cc63 c->ReplaceDim(in_shapes[i], 0, c->UnknownDim(), &out_shapes[i])); in __anon8ccc74200102()
86 c->ReplaceDim(c->input(0), 0, c->UnknownDim(), &out_shape)); in __anon8ccc74200202()
Dspectral_ops.cc94 TF_RETURN_IF_ERROR(c->ReplaceDim(out, -rank + i, c->UnknownDim(), &out)); in RFFTShape()
103 TF_RETURN_IF_ERROR(c->ReplaceDim(out, -rank + i, c->MakeDim(dim), &out)); in RFFTShape()
Dctc_ops.cc58 TF_RETURN_IF_ERROR(c->ReplaceDim(inputs, 1, batch_size, &inputs)); in __anoned3a12980102()
95 TF_RETURN_IF_ERROR(c->ReplaceDim(inputs, 1, batch_size, &inputs)); in __anoned3a12980202()
Dimage_ops.cc105 TF_RETURN_IF_ERROR(c->ReplaceDim(input, -1, last_dim, &out)); in ColorspaceShapeFn()
362 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 1, c->UnknownDim(), &input)); in __anone43000c10602()
363 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 2, c->UnknownDim(), &input)); in __anone43000c10602()
367 c->ReplaceDim(input, 1, c->MakeDim(size_vec(0)), &input)); in __anone43000c10602()
369 c->ReplaceDim(input, 2, c->MakeDim(size_vec(1)), &input)); in __anone43000c10602()
Dnn_ops.cc122 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 3, last_dim, &out)); in __anon87c0335a0302()
156 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 3, last_dim, &dx)); in __anon87c0335a0402()
431 TF_RETURN_IF_ERROR(c->ReplaceDim(resized, 1, new_height, &resized)); in CommonFusedConvCalculations()
432 TF_RETURN_IF_ERROR(c->ReplaceDim(resized, 2, new_width, &resized)); in CommonFusedConvCalculations()
1216 TF_RETURN_IF_ERROR(c->ReplaceDim(features, 0, batch_size, &features)); in __anon87c0335a2202()
1605 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 3, last_dim, &out)); in __anon87c0335a3002()
2545 TF_RETURN_IF_ERROR(c->ReplaceDim(x, 3, channel_dim, &y)); in __anon87c0335a4002()
2547 TF_RETURN_IF_ERROR(c->ReplaceDim(x, 1, channel_dim, &y)); in __anon87c0335a4002()
2619 c->ReplaceDim(y_backprop, 3, channel_dim, &x_backprop)); in __anon87c0335a4102()
2622 c->ReplaceDim(y_backprop, 1, channel_dim, &x_backprop)); in __anon87c0335a4102()
Dcontrol_flow_ops.cc136 TF_RETURN_IF_ERROR(c->ReplaceDim(out, d, c->UnknownDim(), &out)); in MergeShape()
Dsparse_csr_matrix_ops.cc331 TF_RETURN_IF_ERROR(c->ReplaceDim(b_shape, 0, batch_size, &b_shape)); in __anond96a6a670802()
332 TF_RETURN_IF_ERROR(c->ReplaceDim(a_shape, 0, batch_size, &a_shape)); in __anond96a6a670802()
Darray_ops.cc255 c->ReplaceDim(out, out_unknown_idx, inferred_dim, &out)); in SetOutputShapeForReshape()
273 c->ReplaceDim(out, out_unknown_idx, unknown_in_dim, &out)); in SetOutputShapeForReshape()
301 TF_RETURN_IF_ERROR(c->ReplaceDim( in __anonf6523ebd0202()
503 c->ReplaceDim(out, out_rank - i - 1, out_dim, &out)); in __anonf6523ebd0702()
595 c->ReplaceDim(input, split_dim, split_dim_size, &out)); in __anonf6523ebd0a02()
632 TF_RETURN_IF_ERROR(c->ReplaceDim(output_shape, in __anonf6523ebd0b02()
684 c->ReplaceDim(input, split_dim, c->MakeDim(size), &output_shape)); in __anonf6523ebd0b02()
1596 c->ReplaceDim(input, batch_dim, batch_dim_dim, &output_shape)); in __anonf6523ebd2302()
Dlookup_ops.cc136 c->ReplaceDim(keys, keys_rank - key_suffix_rank + d, dim, &keys)); in ValidateTableResourceHandle()
Dtraining_ops.cc67 c->ReplaceDim(grad, 0, c->UnknownDim(), &grad_unknown_first)); in HandleGradAndIndicesInputs()
Dmath_ops.cc1805 c->ReplaceDim(output, rank - 1, inferred_dim, &output)); in __anonb5dc68881402()
/external/tensorflow/tensorflow/core/framework/
Dshape_inference_test.cc923 TEST_F(ShapeInferenceTest, ReplaceDim) { in TEST_F() argument
932 EXPECT_TRUE(c.ReplaceDim(in, 0, c.Dim(in, 1), &replaced).ok()); in TEST_F()
934 EXPECT_TRUE(c.ReplaceDim(in, 2, c.Dim(in, 1), &replaced).ok()); in TEST_F()
936 EXPECT_TRUE(c.ReplaceDim(in, 1, c.Dim(in, 2), &replaced).ok()); in TEST_F()
938 EXPECT_TRUE(c.ReplaceDim(unknown, 0, c.Dim(in, 1), &replaced).ok()); in TEST_F()
942 EXPECT_TRUE(c.ReplaceDim(in, -1, c.Dim(in, 1), &replaced).ok()); in TEST_F()
944 EXPECT_TRUE(c.ReplaceDim(unknown, -1, c.Dim(in, 1), &replaced).ok()); in TEST_F()
948 EXPECT_FALSE(c.ReplaceDim(in, 3, c.Dim(in, 1), &replaced).ok()); in TEST_F()
951 EXPECT_FALSE(c.ReplaceDim(in, -4, c.Dim(in, 1), &replaced).ok()); in TEST_F()
Dcommon_shape_fns.cc1105 TF_RETURN_IF_ERROR(c->ReplaceDim(x, channel_dim_index, channel_dim, &y)); in FusedBatchNormShape()
1175 c->ReplaceDim(y_backprop, channel_dim_index, channel_dim, &x_backprop)); in FusedBatchNormGradShape()
1355 TF_RETURN_IF_ERROR(c->ReplaceDim(input_shape, input_rank - 1, in MatrixDiagV2Shape()
1360 TF_RETURN_IF_ERROR(c->ReplaceDim(input_shape, input_rank - 2, in MatrixDiagV2Shape()
1362 TF_RETURN_IF_ERROR(c->ReplaceDim(output_shape, input_rank - 1, in MatrixDiagV2Shape()
Dshape_inference.h418 Status ReplaceDim(ShapeHandle s, int64 dim_index, DimensionHandle new_dim,
Dshape_inference.cc651 Status InferenceContext::ReplaceDim(ShapeHandle s, int64 dim_index_in, in ReplaceDim() function in tensorflow::shape_inference::InferenceContext
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc996 TF_CHECK_OK(ctx->ReplaceDim(relaxed, d, new_dim, &relaxed)); in OutputAsUnion()