Home
last modified time | relevance | path

Searched refs:is_identity (Results 1 – 23 of 23) 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/kernels/
Dslice_op.cc64 TensorShape* output_shape, bool* is_identity, in SharedSliceValidation() argument
92 *is_identity = true; in SharedSliceValidation()
114 (*is_identity) &= take_all; in SharedSliceValidation()
127 bool is_identity = true; in SharedSliceCommonCases() local
132 SharedSliceValidation(context, input, &output_shape, &is_identity, in SharedSliceCommonCases()
135 if (is_identity) { in SharedSliceCommonCases()
Dstrided_slice_op.cc95 bool is_identity = true; in Compute() local
107 &processing_shape, &final_shape, &is_identity, in Compute()
112 if (is_identity) { in Compute()
203 bool is_identity = true; in Compute() local
233 shrink_axis_mask, &processing_shape, &final_shape, &is_identity, in Compute()
297 bool is_identity = true; in Compute() local
344 &final_shape, &is_identity, &is_simple_slice, &slice_dim0, in Compute()
Dstrided_slice_op_test.cc107 bool is_identity = true, slice_dim0 = true, is_simple_slice = true; in BM_ValidateStridedSliceOp() local
118 &is_identity, &is_simple_slice, &slice_dim0, &begin_out, &end_out, in BM_ValidateStridedSliceOp()
Dtranspose_op.cc151 bool is_identity = true; in Compute() local
161 is_identity = false; in Compute()
171 if (!IsConjugate() && (dims <= 1 || is_identity)) { in Compute()
/external/tensorflow/tensorflow/core/util/
Dstrided_slice_op.cc175 bool* is_identity, bool* is_simple_slice, bool* slice_dim0, in ValidateStridedSliceOp() argument
269 *is_identity = true; in ValidateStridedSliceOp()
330 (*is_identity) &= take_all_in_dimension; in ValidateStridedSliceOp()
333 (*is_identity) &= stride_i == 1 && begin_and_end_masked; in ValidateStridedSliceOp()
422 TensorShape* final_shape, bool* is_identity, bool* is_simple_slice, in ValidateStridedSliceOp() argument
431 &partial_processing_shape, &partial_final_shape, is_identity, in ValidateStridedSliceOp()
Dstrided_slice_op.h70 bool* is_identity, bool* is_simple_slice, bool* slice_dim0,
81 TensorShape* final_shape, bool* is_identity, bool* is_simple_slice,
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtranspose_op.cc62 bool is_identity = true; in Compile() local
71 is_identity = false; in Compile()
82 if (dims <= 1 || is_identity) { in Compile()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_slice_op.cc63 static void ValidateMklInputs(OpKernelContext* context, bool* is_identity, in ValidateMklInputs() argument
107 *is_identity = true; in ValidateMklInputs()
128 (*is_identity) &= take_all; in ValidateMklInputs()
139 bool is_identity = true; in CheckCommonCasesForMklInputs() local
142 ValidateMklInputs(context, &is_identity, begin, size); in CheckCommonCasesForMklInputs()
149 if (is_identity) { in CheckCommonCasesForMklInputs()
/external/llvm-project/polly/lib/External/isl/
Disl_morph.c108 isl_bool is_identity; in identity_on_parameters() local
121 is_identity = isl_mat_is_scaled_identity(sub); in identity_on_parameters()
124 return is_identity; in identity_on_parameters()
141 isl_bool is_identity; in isl_morph_get_var_multi_aff() local
146 is_identity = identity_on_parameters(morph); in isl_morph_get_var_multi_aff()
147 if (is_identity < 0) in isl_morph_get_var_multi_aff()
149 if (!is_identity) in isl_morph_get_var_multi_aff()
Disl_farkas.c768 isl_bool is_identity; in isl_basic_set_coefficients_morphed_product() local
776 is_identity = isl_mat_is_scaled_identity(peek_inv(f->morph)); in isl_basic_set_coefficients_morphed_product()
777 if (is_identity < 0) in isl_basic_set_coefficients_morphed_product()
779 if (is_identity) in isl_basic_set_coefficients_morphed_product()
Disl_map.c11857 isl_bool equal, is_identity; in isl_map_is_identity() local
11864 is_identity = isl_map_is_subset(map, id); in isl_map_is_identity()
11867 return is_identity; in isl_map_is_identity()
/external/skqp/tests/
DMatrix44Test.cpp69 static bool is_identity(const SkMatrix44& m) { in is_identity() function
832 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
837 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
842 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
850 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
852 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
864 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
879 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
DMatrixTest.cpp75 static bool is_identity(const SkMatrix& m) { in is_identity() function
888 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
893 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
899 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
907 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
909 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
/external/skia/tests/
DMatrix44Test.cpp63 static bool is_identity(const SkMatrix44& m) { in is_identity() function
826 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
831 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
836 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
844 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
846 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
858 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
869 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
DMatrixTest.cpp75 static bool is_identity(const SkMatrix& m) { in is_identity() function
850 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
855 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
861 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
868 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
870 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddependency_optimizer.cc190 const bool is_identity = IsIdentity(node) || IsIdentityNSingleInput(node); in BypassingNodeIsBeneficial() local
235 if ((is_identity || is_multi_input_identity_n) && num_cross_in > 0 && in BypassingNodeIsBeneficial()
251 const bool is_identity = IsIdentity(*node) || IsIdentityNSingleInput(*node); in OptimizeNode() local
374 if (is_noop || ((is_identity || is_multi_input_identity) && in OptimizeNode()
404 if ((is_identity && i == 0) || in OptimizeNode()
Darithmetic_optimizer.cc3368 bool is_identity; in GetStridedSliceAxis() local
3377 &processing_shape, &final_shape, &is_identity, &is_simple_slice, in GetStridedSliceAxis()
/external/libgav1/libgav1/src/dsp/
Dinverse_transform.cc1112 constexpr bool is_identity = transform1d_type == k1DTransformIdentity; in TransformLoop_C() local
1159 transform1d_func(residual[i], is_identity ? row_shift : row_clamp_range); in TransformLoop_C()
1160 if (!lossless && !is_identity && row_shift > 0) { in TransformLoop_C()
1197 is_identity ? column_shift : column_clamp_range); in TransformLoop_C()
1204 if (!lossless && !is_identity) { in TransformLoop_C()
/external/tensorflow/tensorflow/core/ops/
Darray_ops.cc1741 bool is_identity, is_simple_slice, slice_dim0; in __anon42d741192502() local
1746 &processing_shape, &final_shape, &is_identity, &is_simple_slice, in __anon42d741192502()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes.cc3143 bool is_identity; in ConvertStridedSlice() local
3153 &final_shape, &is_identity, &is_simple_slice, &slice_dim0, &begin, &end, in ConvertStridedSlice()
/external/llvm-project/polly/lib/External/isl/include/isl/
Disl-noexceptions.h1332 inline boolean is_identity() const;
3119 inline boolean is_identity() const;
8564 boolean map::is_identity() const in is_identity() function
16732 boolean union_map::is_identity() const in is_identity() function