Home
last modified time | relevance | path

Searched refs:is_identity (Results 1 – 15 of 15) sorted by relevance

/external/libchrome/base/posix/
Dfile_descriptor_shuffle.cc36 const bool is_identity = i->source == i->dest; in PerformInjectiveMultimapDestructive() local
40 if (!is_identity && i->dest == j->source) { in PerformInjectiveMultimapDestructive()
65 if (!is_identity) { in PerformInjectiveMultimapDestructive()
70 if (!is_identity && i->close) in PerformInjectiveMultimapDestructive()
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_remove_constants.c68 unsigned is_identity = 1; in rc_remove_unused_constants() local
115 is_identity = 0; in rc_remove_unused_constants()
123 assert( is_identity || new_count < c->Program.Constants.Count); in rc_remove_unused_constants()
127 if (!is_identity) { in rc_remove_unused_constants()
/external/tensorflow/tensorflow/core/util/
Dstrided_slice_op.cc153 bool* is_identity, bool* is_simple_slice, bool* slice_dim0, in ValidateStridedSliceOp() argument
247 *is_identity = true; in ValidateStridedSliceOp()
308 (*is_identity) &= take_all_in_dimension; in ValidateStridedSliceOp()
311 (*is_identity) &= stride_i == 1 && begin_and_end_masked; in ValidateStridedSliceOp()
375 TensorShape* final_shape, bool* is_identity, bool* is_simple_slice, in ValidateStridedSliceOp() argument
383 &partial_processing_shape, &partial_final_shape, is_identity, in ValidateStridedSliceOp()
Dstrided_slice_op.h49 bool* is_identity, bool* is_simple_slice, bool* slice_dim0,
59 TensorShape* final_shape, bool* is_identity, bool* is_simple_slice,
/external/tensorflow/tensorflow/core/kernels/
Dstrided_slice_op.cc92 bool is_identity = true; in Compute() local
104 &processing_shape, &final_shape, &is_identity, in Compute()
109 if (is_identity) { in Compute()
192 bool is_identity = true; in Compute() local
222 shrink_axis_mask, &processing_shape, &final_shape, &is_identity, in Compute()
284 bool is_identity = true; in Compute() local
312 shrink_axis_mask, &processing_shape, &final_shape, &is_identity, in Compute()
Dslice_op.cc66 TensorShape* output_shape, bool* is_identity, in SharedValidation() argument
95 *is_identity = true; in SharedValidation()
117 (*is_identity) &= take_all; in SharedValidation()
130 bool is_identity = true; in SharedSliceCommonCases() local
134 SharedValidation(context, output_shape, &is_identity, &slice_dim0, begin, in SharedSliceCommonCases()
138 if (is_identity) { in SharedSliceCommonCases()
Dstrided_slice_op_test.cc110 bool is_identity = true, slice_dim0 = true, is_simple_slice = true; in BM_ValidateStridedSliceOp() local
121 &is_identity, &is_simple_slice, &slice_dim0, &begin_out, &end_out, in BM_ValidateStridedSliceOp()
Dtranspose_op.cc165 bool is_identity = true; in Compute() local
175 is_identity = false; in Compute()
186 if (!IsConjugate() && (dims <= 1 || is_identity)) { in Compute()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtranspose_op.cc63 bool is_identity = true; in Compile() local
72 is_identity = false; in Compile()
82 if (dims <= 1 || is_identity) { in Compile()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddependency_optimizer.cc155 const bool is_identity = IsIdentity(*node); in OptimizeNode() local
276 if (is_noop || is_identity) { in OptimizeNode()
321 if (is_identity && (num_cross_after > 0 || num_cross_before > 0)) { in OptimizeNode()
325 if (is_identity && !SafeToRemoveIdentity(*node)) { in OptimizeNode()
338 if (is_identity && i == 0) { in OptimizeNode()
/external/skia/tests/
DMatrix44Test.cpp69 static bool is_identity(const SkMatrix44& m) { in is_identity() function
841 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
846 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
851 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
859 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
861 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
873 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
888 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
DMatrixTest.cpp69 static bool is_identity(const SkMatrix& m) { in is_identity() function
836 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
841 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
847 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
855 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
857 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
/external/skqp/tests/
DMatrix44Test.cpp69 static bool is_identity(const SkMatrix44& m) { in is_identity() function
841 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
846 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
851 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
859 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
861 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
873 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
888 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
DMatrixTest.cpp69 static bool is_identity(const SkMatrix& m) { in is_identity() function
836 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
841 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
847 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
855 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
857 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
/external/tensorflow/tensorflow/core/ops/
Darray_ops.cc1465 bool is_identity, is_simple_slice, slice_dim0; in __anondb9326b22602() local
1470 &processing_shape, &final_shape, &is_identity, &is_simple_slice, in __anondb9326b22602()