AI Slop Code RIsk Monitor

apple/coremltools

Core ML tools contain supporting tools for Core ML model conversion, editing, and validation.

12.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for apple/coremltools, a Python project with 5,438 GitHub stars. SynthScan examined 409,761 lines of code across 1120 source files, recording 4384 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 12.0 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

12.0
Adjusted Signal
12.0
Raw Pattern Score
100%
Time Factor
2026-09-30
Last Push
5.4K
Stars
Python
Language
409.8K
Lines of Code
1.1K
Files
4.4K
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 32.5/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 3431 finding(s).

Hallucinated Dependency & Supply Chain Risk 11.9/100 · LOW

Are imports declared and package/API names verified? 771 finding(s).

Agent Over-Engineering Ratio 30.2/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 2702 finding(s).

PR Review Velocity Impact 48.8/100 · MEDIUM

Which changes need focused human review? 4384 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 48HIGH 93MEDIUM 99LOW 4144

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 4384 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers2449 hits · 2251 pts
SeverityFileLineSnippetContext
LOWcoremltools/optimize/_utils.py133def promote_rank_to_same_as_data(CODE
LOWcoremltools/optimize/_utils.py163def _cast_from_quantized_dtype(input_data: np.ndarray) -> np.ndarray:CODE
LOWcoremltools/optimize/_utils.py200def dequantize_by_scale_and_zp(CODE
LOWcoremltools/optimize/_utils.py371def reshape_weight_for_vector_lut(CODE
LOWcoremltools/optimize/_utils.py536def select_input_output_channel_axis(op: "Operation") -> Tuple[Optional[int], Optional[int]]:CODE
LOWcoremltools/optimize/_utils.py791def restore_elements_from_packed_bits(CODE
LOWcoremltools/optimize/_utils.py881def _combine_lists_with_common_elements(data: List[List[str]]) -> List[List[str]]:CODE
LOWcoremltools/optimize/_utils.py914def _adjust_concat_surrounding_activation_stats(CODE
LOWcoremltools/optimize/torch/base_model_optimizer.py70 def _get_model_for_compression(self, inplace: bool):CODE
LOWcoremltools/optimize/torch/optimization_config.py153def _structure_from_dict_hook_factory(conversion_cls: _Any) -> _Callable:CODE
LOWcoremltools/optimize/torch/optimization_config.py154 def _structure_from_dict_hook(CODE
LOWcoremltools/optimize/torch/optimization_config.py174def _validate_module_type_keys_factory(supported_modules):CODE
LOWcoremltools/optimize/torch/_utils/k_means.py211 def _scale_by_per_channel_scale(self, param_name: str, param: _torch.Tensor) -> _torch.Tensor:CODE
LOWcoremltools/optimize/torch/_utils/k_means.py227 def _get_compression_metadata(CODE
LOWcoremltools/optimize/torch/_utils/k_means.py274 def _register_compression_metadata(CODE
LOWcoremltools/optimize/torch/_utils/k_means.py283 def _unscale_by_per_channel_scale(self, param_name: str, param: _torch.Tensor) -> _torch.Tensor:CODE
LOWcoremltools/optimize/torch/_utils/k_means.py508 def _cluster_weights_with_masking(CODE
LOWcoremltools/optimize/torch/_utils/k_means.py685 def _update_clustered_block_weight(CODE
LOWcoremltools/optimize/torch/_utils/k_means.py900 def _prepare_worker_processes(CODE
LOWcoremltools/optimize/torch/_utils/k_means.py1034 def _prepare_worker_processes(CODE
LOWcoremltools/optimize/torch/_utils/k_means.py1077 def _prepare_worker_processes(CODE
LOWcoremltools/optimize/torch/_utils/report_utils.py39def compute_post_training_report(CODE
LOWcoremltools/optimize/torch/_utils/optimizer_utils.py57def is_supported_module_for_config(CODE
LOWcoremltools/optimize/torch/_utils/graph_utils.py104def parse_call_function_target(target: _Any) -> str:CODE
LOWcoremltools/optimize/torch/_utils/validation_utils.py54 def sanitize_quantization_block_size(self):CODE
LOW⚡coremltools/optimize/torch/_utils/validation_utils.py122 def sanitize_palettization_group_size(self):CODE
LOWcoremltools/optimize/torch/_utils/validation_utils.py149 def sanitize_palettization_cluster_dim(self):CODE
LOWcoremltools/optimize/torch/_utils/metadata_utils.py113 def _get_metadata_buffer_name(self, metadata_key: str) -> str:CODE
LOWcoremltools/optimize/torch/_utils/metadata_utils.py140def register_metadata_version(model: _torch.nn.Module):CODE
LOWcoremltools/optimize/torch/_utils/torch_utils.py112def maybe_convert_str_to_dtype(dtype: _Union[str, _torch.dtype]) -> _torch.dtype:CODE
LOWcoremltools/optimize/torch/_utils/torch_utils.py150def maybe_convert_str_to_mod_type(mod_type: str):CODE
LOWcoremltools/optimize/torch/_utils/torch_utils.py249def normalize_fsdp_module_name(module_name: str) -> str:CODE
LOW…ze/torch/layerwise_compression/layerwise_compressor.py312 def _register_activation_processing_hook(CODE
LOW…ze/torch/layerwise_compression/layerwise_compressor.py321 def activation_processing_hook(_, inp, out):CODE
LOW…ols/optimize/torch/layerwise_compression/algorithms.py332 def _get_compression_metadata(self, param_name, param):CODE
LOW…ols/optimize/torch/layerwise_compression/algorithms.py335 def _store_quantization_params(self, quantizer: _Quantizer):CODE
LOW…ols/optimize/torch/layerwise_compression/algorithms.py510 def _get_compression_metadata(self, param_name, param):CODE
LOW…ols/optimize/torch/layerwise_compression/algorithms.py694 def _get_compression_metadata(self, param_name, param):CODE
LOW…s/optimize/torch/layerwise_compression/input_cacher.py115 def _get_input_cacher_pre_hook(inputs, kwarg_inputs):CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py179def get_not_object_type_or_name_filter(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py190 def not_object_type_or_name_filter(n: _Node) -> bool:CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py196def _get_weighted_mod_pattern(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py233def _get_weighted_mod_bn_pattern(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py270def get_binary_op_act_pattern(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py403def annotate_weighted_mod_pattern(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py513def annotate_binary_op_act_pattern(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py607def annotate_unary_shared_observer_ops(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py663def annotate_conv_bn_act_helper(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py706def annotate_linear_bn_act_helper(CODE
LOW…optimize/torch/quantization/_coreml_quantizer_utils.py746def annotate_binary_op_helper(CODE
LOW…imize/torch/quantization/post_training_quantization.py356 def _compute_quantization_params(CODE
LOW…imize/torch/quantization/post_training_quantization.py498 def _get_compression_metadata(self, param_name, submod_config, scale, zero_point):CODE
LOWcoremltools/optimize/torch/quantization/quantizer.py172 def _get_torch_ao_prepared_model(CODE
LOWcoremltools/optimize/torch/quantization/_configure.py185 def _get_default_quantization_options(self):CODE
LOWcoremltools/optimize/torch/quantization/_configure.py188 def _get_observer_type_to_param_names(self):CODE
LOWcoremltools/optimize/torch/quantization/_configure.py214 def _setup_fake_quant_module_device(CODE
LOWcoremltools/optimize/torch/quantization/_configure.py254 def _get_affine_act_post_process_mod_from_symmetric(self, module: _aoquant.FakeQuantizeBase):CODE
LOWcoremltools/optimize/torch/quantization/_configure.py286 def _replace_activation_quantizers(self, model: _fx.GraphModule) -> _fx.GraphModule:CODE
LOWcoremltools/optimize/torch/quantization/_configure.py306 def _mark_act_post_process_for_replacement(CODE
LOWcoremltools/optimize/torch/quantization/_configure.py343 def _remove_activation_quantizer_after_dropout(model: _fx.GraphModule):CODE
2389 more matches not shown…
Unused Imports709 hits · 582 pts
SeverityFileLineSnippetContext
LOWmlmodel/docs/preprocess.py4CODE
LOWcoremltools/__init__.py28CODE
LOWcoremltools/__init__.py124CODE
LOWcoremltools/__init__.py124CODE
LOWcoremltools/__init__.py124CODE
LOWcoremltools/__init__.py124CODE
LOWcoremltools/__init__.py127CODE
LOWcoremltools/__init__.py128CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py129CODE
LOWcoremltools/__init__.py130CODE
LOWcoremltools/__init__.py131CODE
LOWcoremltools/__init__.py132CODE
LOWcoremltools/__init__.py133CODE
LOWcoremltools/__init__.py134CODE
LOWcoremltools/__init__.py135CODE
LOWcoremltools/__init__.py138CODE
LOWcoremltools/optimize/__init__.py9CODE
LOWcoremltools/optimize/_utils.py13CODE
LOWcoremltools/optimize/torch/__init__.py6CODE
LOWcoremltools/optimize/torch/__init__.py6CODE
LOWcoremltools/optimize/torch/__init__.py6CODE
LOWcoremltools/optimize/torch/__init__.py6CODE
LOWcoremltools/optimize/torch/__init__.py6CODE
LOWcoremltools/optimize/torch/__init__.py6CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py89CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py89CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py89CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py89CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py89CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py89CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py97CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py97CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py97CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py98CODE
LOW…tools/optimize/torch/layerwise_compression/__init__.py98CODE
LOWcoremltools/optimize/torch/quantization/__init__.py44CODE
LOWcoremltools/optimize/torch/quantization/__init__.py44CODE
LOWcoremltools/optimize/torch/quantization/__init__.py44CODE
LOWcoremltools/optimize/torch/quantization/__init__.py44CODE
LOWcoremltools/optimize/torch/quantization/__init__.py50CODE
LOWcoremltools/optimize/torch/quantization/__init__.py52CODE
LOWcoremltools/optimize/torch/quantization/__init__.py52CODE
LOWcoremltools/optimize/torch/quantization/__init__.py52CODE
LOWcoremltools/optimize/torch/pruning/__init__.py57CODE
LOWcoremltools/optimize/torch/pruning/__init__.py57CODE
LOWcoremltools/optimize/torch/pruning/__init__.py57CODE
LOWcoremltools/optimize/torch/pruning/__init__.py58CODE
LOWcoremltools/optimize/torch/pruning/__init__.py58CODE
LOWcoremltools/optimize/torch/palettization/__init__.py59CODE
LOWcoremltools/optimize/torch/palettization/__init__.py60CODE
LOWcoremltools/optimize/torch/palettization/__init__.py60CODE
LOWcoremltools/optimize/torch/palettization/__init__.py61CODE
LOWcoremltools/optimize/torch/palettization/__init__.py62CODE
LOWcoremltools/optimize/torch/palettization/__init__.py62CODE
649 more matches not shown…
Hallucination Indicators48 hits · 432 pts
SeverityFileLineSnippetContext
CRITICAL…ize/torch/quantization/modules/conv_transpose_fused.py71 nni.qat.modules.conv_fused._ConvBnNd.__init__(CODE
CRITICAL…mltools/test/neural_network/test_custom_neural_nets.py74 output.type.multiArrayType.dataType = coremltools.proto.FeatureTypes_pb2.ArrayFeatureType.ArrayDataType.Value(CODE
CRITICALcoremltools/test/neural_network/test_numpy_nn_layers.py5458 output.type.multiArrayType.dataType = coremltools.proto.FeatureTypes_pb2.ArrayFeatureType.ArrayDataType.Value(CODE
CRITICALcoremltools/test/neural_network/test_numpy_nn_layers.py5530 output.type.multiArrayType.dataType = coremltools.proto.FeatureTypes_pb2.ArrayFeatureType.ArrayDataType.Value(CODE
CRITICALcoremltools/test/sklearn_tests/test_io_types.py265 output.type.imageType.colorSpace = coremltools.proto.FeatureTypes_pb2.ImageFeatureType.ColorSpace.Value(CODE
CRITICALcoremltools/test/sklearn_tests/test_io_types.py298 output.type.imageType.colorSpace = coremltools.proto.FeatureTypes_pb2.ImageFeatureType.ColorSpace.Value(CODE
CRITICALcoremltools/test/sklearn_tests/test_io_types.py331 output.type.imageType.colorSpace = coremltools.proto.FeatureTypes_pb2.ImageFeatureType.ColorSpace.Value(CODE
CRITICAL⚡…s/mil/frontend/torch/test/test_torch_conversion_api.py296 assert ct.converters.mil.frontend.torch.is_torch_fx_node_supported(node)CODE
CRITICAL⚡…s/mil/frontend/torch/test/test_torch_conversion_api.py299 assert not ct.converters.mil.frontend.torch.is_torch_fx_node_supported(node)CODE
CRITICAL…s/mil/frontend/torch/test/test_torch_conversion_api.py325 == ct.converters.mil.frontend.torch.is_torch_fx_node_supported(node)CODE
CRITICAL…s/mil/frontend/torch/test/test_torch_conversion_api.py329 assert not ct.converters.mil.frontend.torch.is_torch_fx_node_supported(node)CODE
CRITICALcoremltools/models/tree_ensemble.py191 _proto.TreeEnsemble_pb2.TreeEnsembleParameters.TreeNode.TreeNodeBehavior.Value(STRING
CRITICALcoremltools/models/tree_ensemble.py229 _proto.TreeEnsemble_pb2.TreeEnsembleParameters.TreeNode.TreeNodeBehavior.Value(STRING
CRITICALcoremltools/models/tree_ensemble.py250 _proto.TreeEnsemble_pb2.TreeEnsembleParameters.TreeNode.TreeNodeBehavior.Value(STRING
CRITICALcoremltools/models/model.py1020 key_pair.key.immediateValue.tensor.strings.values.append(k)CODE
CRITICALcoremltools/models/model.py1022 key_pair.value.immediateValue.tensor.strings.values.append(v)CODE
CRITICALcoremltools/models/nearest_neighbors/builder.py187 self.spec.kNearestNeighborsClassifier.nearestNeighborsIndex.squaredEuclideanDistance.MergeFromString(CODE
CRITICALcoremltools/models/nearest_neighbors/builder.py376 self.spec.kNearestNeighborsClassifier.nearestNeighborsIndex.linearIndex.MergeFromString(CODE
CRITICALcoremltools/models/nearest_neighbors/builder.py518 self.spec.kNearestNeighborsClassifier.numberOfNeighbors.set.values.append(CODE
CRITICAL⚡coremltools/models/nearest_neighbors/builder.py593 self.spec.kNearestNeighborsClassifier.nearestNeighborsIndex.floatSamples.add()CODE
CRITICAL⚡coremltools/models/nearest_neighbors/builder.py600 self.spec.kNearestNeighborsClassifier.int64ClassLabels.vector.append(CODE
CRITICAL⚡coremltools/models/nearest_neighbors/builder.py606 self.spec.kNearestNeighborsClassifier.stringClassLabels.vector.append(CODE
CRITICALcoremltools/models/neural_network/builder.py1183 self.nn_spec.updateParams.epochs.set.values.extend([epochs])STRING
CRITICALcoremltools/models/neural_network/builder.py1185 self.nn_spec.updateParams.epochs.set.values.extend(allowed_set)STRING
CRITICAL…emltools/models/neural_network/flexible_shape_utils.py343 s = feature.type.multiArrayType.shapeRange.sizeRanges.add()CODE
CRITICAL…emltools/models/neural_network/flexible_shape_utils.py414 s = feature.type.multiArrayType.enumeratedShapes.shapes.add()CODE
CRITICAL…emltools/models/neural_network/flexible_shape_utils.py451 s = feature.type.imageType.enumeratedSizes.sizes.add()CODE
CRITICAL…emltools/models/neural_network/flexible_shape_utils.py535 s = feature.type.multiArrayType.enumeratedShapes.shapes.add()CODE
CRITICAL…emltools/models/neural_network/flexible_shape_utils.py603 s = feature.type.imageType.enumeratedSizes.sizes.add()CODE
CRITICAL⚡…emltools/models/neural_network/flexible_shape_utils.py708 s = feature.type.multiArrayType.shapeRange.sizeRanges.add()CODE
CRITICAL⚡…emltools/models/neural_network/flexible_shape_utils.py714 s = feature.type.multiArrayType.shapeRange.sizeRanges.add()CODE
CRITICAL⚡…emltools/models/neural_network/flexible_shape_utils.py718 s = feature.type.multiArrayType.shapeRange.sizeRanges.add()CODE
CRITICAL⚡…ools/models/ml_program/experimental/debugging_utils.py1512 coremltools.models.ml_program.experimental.debugging_utils.MLModelComparator(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py480 inspector = coremltools.models.ml_program.experimental.debugging_utils.MLModelInspector(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py604 inspector = coremltools.models.ml_program.experimental.debugging_utils.MLModelInspector(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py815 validator = coremltools.models.ml_program.experimental.debugging_utils.MLModelValidator(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py986 validator = coremltools.models.ml_program.experimental.debugging_utils.MLModelValidator(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py1095 validator = coremltools.models.ml_program.experimental.debugging_utils.MLModelValidator(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py1151 validator = coremltools.models.ml_program.experimental.debugging_utils.MLModelValidator(STRING
CRITICAL…ools/models/ml_program/experimental/debugging_utils.py1292 coremltools.models.ml_program.experimental.debugging_utils.MLModelComparator(STRING
CRITICAL…s/models/ml_program/experimental/compute_plan_utils.py257 compute_plan = await coremltools.models.ml_program.experimental.compute_plan_utils.load_compute_plan_from_path_oSTRING
CRITICAL…s/models/ml_program/experimental/compute_plan_utils.py324 element_value.immediateValue.tensor.strings.values.append(element)CODE
CRITICAL⚡…s/models/ml_program/experimental/compute_plan_utils.py432 attr.immediateValue.tensor.strings.values.append(id_generator(operation_spec))CODE
CRITICAL…odels/ml_program/experimental/torch/debugging_utils.py1055 ) = coremltools.models.ml_program.experimental.torch._convert_and_retrieve_jit_module_mapping(STRING
CRITICAL…odels/ml_program/experimental/torch/debugging_utils.py1196 ) = coremltools.models.ml_program.experimental.torch._convert_and_retrieve_exported_program_op_mapping(STRING
CRITICAL…odels/ml_program/experimental/torch/debugging_utils.py1377 ) = coremltools.models.ml_program.experimental.torch.convert_and_retrieve_op_mapping(STRING
CRITICAL…odels/ml_program/experimental/torch/debugging_utils.py1823 coremltools.models.ml_program.experimental.torch.TorchScriptMLModelComparator(STRING
CRITICAL…odels/ml_program/experimental/torch/debugging_utils.py2259 coremltools.models.ml_program.experimental.torch.TorchExportMLModelComparator(STRING
Over-Commented Block415 hits · 362 pts
SeverityFileLineSnippetContext
LOW.gitlab-ci.yml1stages:COMMENT
LOWcoremlpython/CoreMLPythonUtils.mm1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWcoremlpython/CoreMLPythonArray.h1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWcoremlpython/CoreMLPython.mm1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWcoremlpython/CoreMLPythonUtils.h1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWcoremlpython/CoreMLPython.h1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWcoremlpython/CoreMLPython.h21COMMENT
LOWcoremlpython/CoreMLPython.h41#if !defined(ML_MODEL_STRUCTURE_IS_AVAILABLE) && __has_include(<CoreML/MLModelStructure.h>)COMMENT
LOWmilstoragepython/MilStorage.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmilstoragepython/MilStoragePython.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmodelpackage/src/ModelPackagePython.cpp1//COMMENT
LOWmodelpackage/src/ModelPackage.cpp1//COMMENT
LOWmodelpackage/src/ModelPackage.hpp1//COMMENT
LOWmodelpackage/src/utils/JsonMap.hpp1//COMMENT
LOWmodelpackage/src/utils/JsonMap.cpp1// JsonMap.cppCOMMENT
LOWmlmodel/tests/NNShaperTest.cpp1//COMMENT
LOWmlmodel/tests/KNNValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/UpdatableModelValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/VisionFeaturePrintValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/NNShapeTests.cpp1// Copyright (c) 2022, Apple Inc. All rights reserved.COMMENT
LOW…del/tests/SoundAnalysisPreprocessingValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/ParameterTests.cpp1//COMMENT
LOW…model/tests/BayesianProbitRegressionValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/AudioFeaturePrintValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/NNValidatorTests.cpp1//COMMENT
LOWmlmodel/tests/framework/TestUtils.hpp1#include <cstring>COMMENT
LOWmlmodel/tests/MILBlob/StorageWriterTests.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/tests/MILBlob/StorageReaderTests.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/tests/MILBlob/MMapFileReaderTests.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/tests/MILBlob/FileWriterTests.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/tests/MILBlob/StorageIntegrationTests.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/tests/MILBlob/StorageIntegrationTests.cpp41 offset0 = writer.WriteData(Util::MakeSpan(data0));COMMENT
LOWmlmodel/tests/MILBlob/AutoDeleteTempFile.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/tests/MILBlob/SpanTests.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/docs/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWmlmodel/docs/conf.py41COMMENT
LOWmlmodel/src/ResultType.hpp1//COMMENT
LOWmlmodel/src/TreeEnsembleCommon.cpp1// Copyright (c) 2022, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/src/Export.hpp1//COMMENT
LOWmlmodel/src/Comparison.hpp1//COMMENT
LOWmlmodel/src/MLModelSpecification.hpp1//COMMENT
LOWmlmodel/src/MLModelSpecification.hpp21#pragma clang diagnostic ignored "-Wdeprecated"COMMENT
LOWmlmodel/src/ItemSimilarityRecommenderCommon.hpp1 //COMMENT
LOWmlmodel/src/Globals.hpp21 // - custom modelsCOMMENT
LOWmlmodel/src/Globals.hpp41 // - Sound Analysis PrepreocessingCOMMENT
LOWmlmodel/src/Utils.hpp1#ifndef MLMODEL_UTILSCOMMENT
LOWmlmodel/src/Format.hpp1#ifndef _FORMAT_HPPCOMMENT
LOWmlmodel/src/LayerShapeConstraints.hpp1//COMMENT
LOWmlmodel/src/transforms/ItemSimilarityRecommender.hpp1//COMMENT
LOWmlmodel/src/transforms/NeuralNetwork.cpp1//COMMENT
LOWmlmodel/src/transforms/TreeEnsemble.cpp1//COMMENT
LOWmlmodel/src/transforms/DictVectorizer.hpp1//COMMENT
LOWmlmodel/src/transforms/Pipeline.hpp1//COMMENT
LOWmlmodel/src/transforms/DictVectorizer.cpp1//COMMENT
LOWmlmodel/src/transforms/ItemSimilarityRecommender.cpp1//COMMENT
LOWmlmodel/src/transforms/NeuralNetwork.hpp1//COMMENT
LOWmlmodel/src/MILBlob/Fp16.cpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/src/MILBlob/SubByteTypes.hpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
LOWmlmodel/src/MILBlob/SubByteTypes.hpp21 void SetInt(int i); \COMMENT
LOWmlmodel/src/MILBlob/Util/Span.hpp1// Copyright (c) 2021, Apple Inc. All rights reserved.COMMENT
355 more matches not shown…
Deep Nesting402 hits · 342 pts
SeverityFileLineSnippetContext
LOWmlmodel/docs/readme_session.py113CODE
LOWcoremltools/optimize/_utils.py536CODE
LOWcoremltools/optimize/torch/_utils/k_means.py540CODE
LOWcoremltools/optimize/torch/_utils/k_means.py719CODE
LOWcoremltools/optimize/torch/_utils/k_means.py924CODE
LOWcoremltools/optimize/torch/_utils/k_means.py941CODE
LOWcoremltools/optimize/torch/_utils/report_utils.py39CODE
LOWcoremltools/optimize/torch/_utils/graph_utils.py37CODE
LOWcoremltools/optimize/torch/_utils/graph_utils.py337CODE
LOWcoremltools/optimize/torch/_utils/graph_utils.py500CODE
LOWcoremltools/optimize/torch/_utils/torch_utils.py150CODE
LOWcoremltools/optimize/torch/_utils/torch_utils.py222CODE
LOW…ze/torch/layerwise_compression/layerwise_compressor.py158CODE
LOW…ols/optimize/torch/layerwise_compression/algorithms.py396CODE
LOW…imize/torch/quantization/post_training_quantization.py512CODE
LOWcoremltools/optimize/torch/quantization/quantizer.py321CODE
LOWcoremltools/optimize/torch/quantization/quantizer.py362CODE
LOWcoremltools/optimize/torch/quantization/_configure.py214CODE
LOWcoremltools/optimize/torch/quantization/_configure.py286CODE
LOWcoremltools/optimize/torch/quantization/_configure.py306CODE
LOWcoremltools/optimize/torch/quantization/_configure.py343CODE
LOWcoremltools/optimize/torch/quantization/_configure.py377CODE
LOWcoremltools/optimize/torch/quantization/_configure.py423CODE
LOWcoremltools/optimize/torch/quantization/_configure.py474CODE
LOWcoremltools/optimize/torch/quantization/_configure.py496CODE
LOWcoremltools/optimize/torch/quantization/_utils.py130CODE
LOW…/torch/quantization/modules/learnable_fake_quantize.py230CODE
LOW…/torch/quantization/modules/learnable_fake_quantize.py325CODE
LOW…mltools/optimize/torch/pruning/_base_pruning_method.py155CODE
LOWcoremltools/optimize/torch/pruning/_base_pruner.py78CODE
LOWcoremltools/optimize/torch/pruning/_base_pruner.py126CODE
LOWcoremltools/optimize/torch/pruning/_utils.py38CODE
LOWcoremltools/optimize/torch/palettization/palettizer.py129CODE
LOWcoremltools/optimize/torch/palettization/palettizer.py391CODE
LOW…remltools/optimize/torch/palettization/_partitioner.py145CODE
LOW…ols/optimize/torch/palettization/_custom_conversion.py65CODE
LOW…mltools/optimize/torch/palettization/fake_palettize.py268CODE
LOW…mltools/optimize/torch/palettization/fake_palettize.py338CODE
LOW…mltools/optimize/torch/palettization/fake_palettize.py579CODE
LOW…ze/torch/palettization/_fake_palettizer_tensor_hook.py136CODE
LOW…ools/optimize/torch/palettization/_efficient_kmeans.py84CODE
LOW…ools/optimize/torch/palettization/_efficient_kmeans.py172CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py199CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py492CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py632CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py695CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py877CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py1220CODE
LOWcoremltools/optimize/coreml/_quantization_passes.py1375CODE
LOWcoremltools/optimize/coreml/_config.py73CODE
LOWcoremltools/optimize/coreml/_config.py91CODE
LOW…mltools/test/optimize/torch/test_utils/test_k_means.py69CODE
LOW…ols/test/optimize/torch/quantization/test_configure.py1155CODE
LOW…ols/test/optimize/torch/quantization/test_quantizer.py576CODE
LOW…ols/test/optimize/torch/quantization/test_quantizer.py644CODE
LOW…optimize/torch/palettization/test_palettization_api.py472CODE
LOW…est/optimize/coreml/test_post_training_quantization.py1313CODE
LOWcoremltools/test/neural_network/test_numpy_nn_layers.py1464CODE
LOWcoremltools/test/neural_network/test_numpy_nn_layers.py1556CODE
LOWcoremltools/test/neural_network/test_numpy_nn_layers.py1708CODE
342 more matches not shown…
Cross-File Repetition63 hits · 315 pts
SeverityFileLineSnippetContext
HIGHcoremltools/test/pipeline/test_pipeline.py0unit test class for testing scikit-learn converter.STRING
HIGH…ls/test/xgboost_tests/test_boosted_trees_regression.py0unit test class for testing scikit-learn converter.STRING
HIGH…ls/test/xgboost_tests/test_boosted_trees_classifier.py0unit test class for testing scikit-learn converter.STRING
HIGH…ls/test/xgboost_tests/test_decision_tree_regression.py0unit test class for testing scikit-learn converter.STRING
HIGH…ls/test/xgboost_tests/test_decision_tree_classifier.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_normalizer.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_ridge_regression.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_dict_vectorizer.py0unit test class for testing scikit-learn converter.STRING
HIGH…ls/test/sklearn_tests/test_random_forest_classifier.py0unit test class for testing scikit-learn converter.STRING
HIGH…ls/test/sklearn_tests/test_random_forest_regression.py0unit test class for testing scikit-learn converter.STRING
HIGH…mltools/test/sklearn_tests/test_categorical_imputer.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_imputer.py0unit test class for testing scikit-learn converter.STRING
HIGH…remltools/test/sklearn_tests/test_linear_regression.py0unit test class for testing scikit-learn converter.STRING
HIGH…ools/test/sklearn_tests/test_k_neighbors_classifier.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_NuSVC.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_one_hot_encoder.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_standard_scalar.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_NuSVR.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_SVC.py0unit test class for testing scikit-learn converter.STRING
HIGHcoremltools/test/pipeline/test_pipeline.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ls/test/xgboost_tests/test_boosted_trees_regression.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ls/test/xgboost_tests/test_boosted_trees_classifier.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…xgboost_tests/test_boosted_trees_regression_numeric.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ls/test/xgboost_tests/test_decision_tree_regression.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ls/test/xgboost_tests/test_decision_tree_classifier.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…xgboost_tests/test_boosted_trees_classifier_numeric.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…xgboost_tests/test_decision_tree_regression_numeric.py0set up the unit test by loading the dataset and training a model.STRING
HIGHcoremltools/test/sklearn_tests/test_ridge_regression.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ls/test/sklearn_tests/test_random_forest_classifier.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ls/test/sklearn_tests/test_random_forest_regression.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…mltools/test/sklearn_tests/test_categorical_imputer.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…remltools/test/sklearn_tests/test_linear_regression.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…sklearn_tests/test_random_forest_classifier_numeric.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ools/test/sklearn_tests/test_k_neighbors_classifier.py0set up the unit test by loading the dataset and training a model.STRING
HIGHcoremltools/test/sklearn_tests/test_SVR.py0set up the unit test by loading the dataset and training a model.STRING
HIGHcoremltools/test/sklearn_tests/test_NuSVC.py0set up the unit test by loading the dataset and training a model.STRING
HIGHcoremltools/test/sklearn_tests/test_one_hot_encoder.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…sklearn_tests/test_random_forest_regression_numeric.py0set up the unit test by loading the dataset and training a model.STRING
HIGHcoremltools/test/sklearn_tests/test_NuSVR.py0set up the unit test by loading the dataset and training a model.STRING
HIGHcoremltools/test/sklearn_tests/test_SVC.py0set up the unit test by loading the dataset and training a model.STRING
HIGH…ols/test/optimize/torch/quantization/test_quantizer.py0test that calling finalize on the module leads to compression metadata being added to the modelSTRING
HIGH…s/test/optimize/torch/pruning/test_magnitude_pruner.py0test that calling finalize on the module leads to compression metadata being added to the modelSTRING
HIGH…ltools/test/optimize/torch/pruning/test_base_pruner.py0test that calling finalize on the module leads to compression metadata being added to the modelSTRING
HIGH…xgboost_tests/test_boosted_trees_classifier_numeric.py0unit test class for testing scikit-learn converter and running both modelsSTRING
HIGH…xgboost_tests/test_decision_tree_regression_numeric.py0unit test class for testing scikit-learn converter and running both modelsSTRING
HIGH…sklearn_tests/test_random_forest_regression_numeric.py0unit test class for testing scikit-learn converter and running both modelsSTRING
HIGH…xgboost_tests/test_boosted_trees_classifier_numeric.py0train a scikit-learn model, convert it and then evaluate it with coremlSTRING
HIGH…xgboost_tests/test_decision_tree_regression_numeric.py0train a scikit-learn model, convert it and then evaluate it with coremlSTRING
HIGH…sklearn_tests/test_random_forest_regression_numeric.py0train a scikit-learn model, convert it and then evaluate it with coremlSTRING
HIGHcoremltools/test/sklearn_tests/test_SVR.py0unit test class for testing the libsvm sklearn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_NuSVC.py0unit test class for testing the libsvm sklearn converter.STRING
HIGHcoremltools/test/sklearn_tests/test_NuSVR.py0unit test class for testing the libsvm sklearn converter.STRING
HIGH…mltools/converters/sklearn/_random_forest_regressor.py0convert a decision tree model to protobuf format. parameters ---------- decision_tree : decisiontreeregressor a trained STRING
HIGH…ltools/converters/sklearn/_random_forest_classifier.py0convert a decision tree model to protobuf format. parameters ---------- decision_tree : decisiontreeregressor a trained STRING
HIGH…ls/converters/sklearn/_gradient_boosting_classifier.py0convert a decision tree model to protobuf format. parameters ---------- decision_tree : decisiontreeregressor a trained STRING
HIGH…mltools/converters/sklearn/_decision_tree_regressor.py0convert a decision tree model to protobuf format. parameters ---------- decision_tree : decisiontreeregressor a trained STRING
HIGHcoremltools/converters/sklearn/_imputer.py0given a model that takes an array of dimension input_dimension, returns the output dimension.STRING
HIGHcoremltools/converters/sklearn/_normalizer.py0given a model that takes an array of dimension input_dimension, returns the output dimension.STRING
HIGHcoremltools/converters/sklearn/_one_hot_encoder.py0given a model that takes an array of dimension input_dimension, returns the output dimension.STRING
HIGHcoremltools/converters/sklearn/_LinearSVC.py0convert a linear regression model to the protobuf spec. parameters ---------- model: linearregression a trained linear rSTRING
3 more matches not shown…
Decorative Section Separators40 hits · 138 pts
SeverityFileLineSnippetContext
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1584 # ---------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1586 # --------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1591 # ---------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1593 # --------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1632 # ----------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1634 # ----------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1639 # --------------------------COMMENT
MEDIUM⚡…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1641 # --------------------------COMMENT
MEDIUM…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1606 # ---------------------COMMENT
MEDIUM…/converters/mil/mil/passes/defs/optimize_repeat_ops.py1608 # --------------------COMMENT
MEDIUMcoremltools/_deps/__init__.py42# ---------------------------------------------------------------------------------------COMMENT
MEDIUMcoremltools/_deps/__init__.py53# ---------------------------------------------------------------------------------------COMMENT
MEDIUM⚡coremltools/_deps/__init__.py87# ---------------------------------------------------------------------------------------COMMENT
MEDIUM⚡coremltools/_deps/__init__.py95# ---------------------------------------------------------------------------------------COMMENT
MEDIUM⚡coremltools/_deps/__init__.py104# ---------------------------------------------------------------------------------------COMMENT
MEDIUM⚡coremltools/_deps/__init__.py112# ---------------------------------------------------------------------------------------COMMENT
MEDIUMcoremltools/_deps/__init__.py164# ---------------------------------------------------------------------------------------COMMENT
MEDIUMcoremltools/_deps/__init__.py224# ---------------------------------------------------------------------------------------COMMENT
MEDIUMcoremltools/_deps/__init__.py232# ---------------------------------------------------------------------------------------COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py20# ------------------------------COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py83# ---------------------------------------COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py145# ---------------------------------------COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py176# ---------------------COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py210# -------------------------------COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py224# -------------------------------------------COMMENT
MEDIUM…s/examples/optimize/torch/pruning/magnitude_pruning.py20# ------------------------------COMMENT
MEDIUM…s/examples/optimize/torch/pruning/magnitude_pruning.py79# ----------------------------------COMMENT
MEDIUM…s/examples/optimize/torch/pruning/magnitude_pruning.py135# ----------------------------------COMMENT
MEDIUM…s/examples/optimize/torch/pruning/magnitude_pruning.py187# ----------------------------COMMENT
MEDIUM…s/examples/optimize/torch/pruning/magnitude_pruning.py220# -------------------------------COMMENT
MEDIUM…s/examples/optimize/torch/pruning/magnitude_pruning.py235# -------------------------------------------COMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py21# --------------------------------COMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py83# ----------------------------------------COMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py141# -------------------------COMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py164# --------------------------------COMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py190# ------------------------------------COMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py199# -------------------------------------------COMMENT
MEDIUMscripts/build.sh5##=============================================================================COMMENT
MEDIUMscripts/build_docs.sh5##=============================================================================COMMENT
MEDIUMscripts/test.sh6##=============================================================================COMMENT
Empty Error Handlers23 hits · 115 pts
SeverityFileLineSnippetContext
HIGHcoremltools/__init__.py139except:CODE
HIGHcoremltools/optimize/torch/_utils/metadata_utils.py103except AttributeError:CODE
HIGH…s/optimize/torch/layerwise_compression/input_cacher.py108except StopExecution:CODE
HIGHcoremltools/test/optimize/torch/utils.py50except ModuleNotFoundError:CODE
HIGHcoremltools/converters/_converters_entry.py1059except:CODE
HIGHcoremltools/converters/_converters_entry.py1067except:CODE
HIGHcoremltools/converters/xgboost/_tree_ensemble.py36except KeyError:CODE
HIGHcoremltools/converters/xgboost/_tree_ensemble.py64except KeyError:CODE
HIGHcoremltools/converters/mil/input_types.py647except ValueError:CODE
HIGHcoremltools/converters/mil/input_types.py652except ValueError:CODE
HIGH…ltools/converters/mil/frontend/torch/torchir_passes.py327except ValueError:CODE
HIGH…ltools/converters/mil/frontend/torch/internal_graph.py59except ValueError:CODE
HIGHcoremltools/converters/mil/frontend/torch/ops.py2521except:CODE
HIGHcoremltools/converters/mil/frontend/torch/ops.py8364except:CODE
HIGHcoremltools/converters/mil/frontend/torch/ops.py8411except:CODE
HIGHcoremltools/converters/mil/frontend/torch/ops.py8490except:CODE
HIGHcoremltools/converters/mil/frontend/torch/ops.py8538except:CODE
HIGHcoremltools/converters/mil/mil/types/type_tensor.py56except TypeError:CODE
HIGHcoremltools/models/_interface_management.py99except AttributeError:CODE
HIGHcoremltools/models/model.py618except Exception:CODE
HIGHcoremltools/models/model.py557except OSError:CODE
HIGHcoremltools/models/utils.py1407except:CODE
HIGHdeps/pybind11/pybind11/setup_helpers.py143except ModuleNotFoundError:CODE
Self-Referential Comments43 hits · 113 pts
SeverityFileLineSnippetContext
MEDIUMmlmodel/docs/readme_session.py177 # Create a version with default settings.COMMENT
MEDIUMmlmodel/docs/readme_session.py316 # Create the new pageCOMMENT
MEDIUM⚡coremltools/test/pipeline/test_pipeline.py377 # Create the first two models that take the same inputCOMMENT
MEDIUM⚡coremltools/test/pipeline/test_pipeline.py381 # Create the last models which add the output from the other two models.COMMENT
MEDIUM⚡coremltools/test/optimize/torch/utils.py177 # Create a StringIO object to capture the log outputCOMMENT
MEDIUM⚡coremltools/test/optimize/torch/utils.py186 # Create a custom logging handler that writes to the StringIO objectCOMMENT
MEDIUMcoremltools/test/ml_program/test_utils.py1773 # The following code will produce two chunks models:COMMENT
MEDIUMcoremltools/test/ml_program/test_utils.py1780 # The following code will produce a single pipeline model `./output/my_model_chunked_pipeline.mlpackage`COMMENT
MEDIUM…ols/test/ml_program/experimental/test_remote_device.py87 # Create a Timer objectCOMMENT
MEDIUM…emltools/converters/mil/frontend/milproto/test_load.py77 # Define a PyMIL programCOMMENT
MEDIUM…emltools/converters/mil/frontend/milproto/test_load.py136 # Define a PyMIL programCOMMENT
MEDIUMcoremltools/converters/mil/frontend/torch/ops.py4990 # Create an interation count. This will only be used if this is a for loop.COMMENT
MEDIUM…ols/converters/mil/frontend/torch/torch_op_registry.py63 # The following functions will be deprecated after 7.2COMMENT
MEDIUM⚡…remltools/converters/mil/frontend/torch/dialect_ops.py20# This file contains the Torch dialect of SSA. Briefly, these ops are onlyCOMMENT
MEDIUM…s/converters/mil/frontend/torch/test/test_torch_ops.py10078 # Create a tensor of given shape with ~90% zero entriesCOMMENT
MEDIUM…ools/converters/mil/frontend/tensorflow/dialect_ops.py15# This file contains the TF dialect of SSA. Briefly, these ops are onlyCOMMENT
MEDIUM…mil/frontend/tensorflow/test/test_tf_conversion_api.py79 # Create a test sampleCOMMENT
MEDIUMcoremltools/converters/sklearn/_converter.py142 # This function is just a thin wrapper around the internal converter soCOMMENT
MEDIUMcoremltools/converters/sklearn/_one_hot_encoder.py82 # Create a pipeline that can do all of the subsequent feature extraction.COMMENT
MEDIUMcoremltools/converters/sklearn/_one_hot_encoder.py119 # Create a one hot encoder per columnCOMMENT
MEDIUMcoremltools/converters/libsvm/_libsvm_converter.py65 # Create the specCOMMENT
MEDIUMcoremltools/models/datatypes.py74 # Create a single dimensions array of length fiveSTRING
MEDIUMcoremltools/models/datatypes.py77 # Create a multi dimension array five by two by ten.STRING
MEDIUMcoremltools/models/datatypes.py115 # Create a dictionary with string keysSTRING
MEDIUMcoremltools/models/datatypes.py118 # Create a dictionary with int keysSTRING
MEDIUMcoremltools/models/utils.py1432 # The below code inserts the "main" function from "my_model.mlpackage" as "main_1",STRING
MEDIUMcoremltools/models/utils.py1914 # The following code will produce two smaller models:STRING
MEDIUMcoremltools/models/utils.py1922 # The following code will produce a single pipeline model `./output/my_model_chunked_pipeline.mlpackage`STRING
MEDIUMcoremltools/models/_feature_management.py340 # Define the output feature typesCOMMENT
MEDIUMcoremltools/models/array_feature_extractor.py34 # Create the model.COMMENT
MEDIUMcoremltools/models/nearest_neighbors/builder.py28 # Create a KNearestNeighborsClassifier model that takes 4-dimensional input data and outputs a string label.STRING
MEDIUMcoremltools/models/neural_network/builder.py240 # Create a neural network binary classifier that classifiesSTRING
MEDIUM⚡…ools/models/ml_program/experimental/debugging_utils.py1510 # Create an instance of MLModelComparatorSTRING
MEDIUM⚡…ools/models/ml_program/experimental/debugging_utils.py1519 # Define a custom comparison functionSTRING
MEDIUM…ools/models/ml_program/experimental/debugging_utils.py1290 # Create an instance of MLModelComparatorSTRING
MEDIUM…remltools/models/ml_program/experimental/perf_utils.py92 # Create a new image with the specified sizeCOMMENT
MEDIUM…odels/ml_program/experimental/torch/debugging_utils.py115 # Create a queue and enqueue all vertices with in-degree 0COMMENT
MEDIUM…odels/ml_program/experimental/torch/debugging_utils.py643 # Create a copy of nodes for iteration as the graph is mutated when inlining.COMMENT
MEDIUM…les/optimize/torch/quantization/linear_quantization.py148# Create an instance of the :py:class:`~.quantization.LinearQuantizerConfig` classCOMMENT
MEDIUM…ples/optimize/torch/palettization/dkm_palettization.py20# Defining the Network and DatasetCOMMENT
MEDIUMscripts/build.sh86# Create a directory for building the artifactsCOMMENT
MEDIUMdeps/pybind11/tests/test_eval_call.py1# This file is called from 'test_eval.py'COMMENT
MEDIUMdeps/pybind11/docs/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
AI Structural Patterns71 hits · 62 pts
SeverityFileLineSnippetContext
LOWcoremltools/optimize/torch/_utils/metadata_utils.py137CODE
LOW…mltools/optimize/torch/layerwise_compression/_quant.py69CODE
LOW…imize/torch/quantization/post_training_quantization.py378CODE
LOW…ize/torch/quantization/modules/conv_transpose_fused.py250CODE
LOW…ize/torch/quantization/modules/conv_transpose_fused.py352CODE
LOW…ize/torch/quantization/modules/conv_transpose_fused.py454CODE
LOW…/optimize/torch/quantization/modules/conv_transpose.py155CODE
LOW…/optimize/torch/quantization/modules/conv_transpose.py245CODE
LOW…/optimize/torch/quantization/modules/conv_transpose.py335CODE
LOW…tools/optimize/torch/quantization/modules/observers.py67CODE
LOW…tools/optimize/torch/quantization/modules/observers.py208CODE
LOWcoremltools/test/modelpackage/test_modelpackage.py584CODE
LOWcoremltools/test/modelpackage/test_modelpackage.py590CODE
LOWcoremltools/test/neural_network/test_model.py538CODE
LOWcoremltools/test/api/test_api_examples.py787CODE
LOWcoremltools/converters/_converters_entry.py69CODE
LOWcoremltools/converters/mil/testing_utils.py529CODE
LOWcoremltools/converters/mil/testing_utils.py657CODE
LOWcoremltools/converters/mil/frontend/_utils.py799CODE
LOW…emltools/converters/mil/frontend/milproto/test_load.py164CODE
LOW…ltools/converters/mil/frontend/torch/internal_graph.py163CODE
LOWcoremltools/converters/mil/frontend/torch/ops.py7670CODE
LOW…s/converters/mil/frontend/torch/test/test_torch_ops.py614CODE
LOW…s/converters/mil/frontend/torch/test/test_torch_ops.py1642CODE
LOW…ls/converters/mil/frontend/torch/test/testing_utils.py243CODE
LOW…ls/converters/mil/frontend/torch/test/testing_utils.py329CODE
LOWcoremltools/converters/mil/frontend/tensorflow/parse.py48CODE
LOW…nverters/mil/frontend/tensorflow/test/testing_utils.py203CODE
LOW…nverters/mil/frontend/tensorflow/test/testing_utils.py353CODE
LOW…ls/converters/mil/frontend/tensorflow/test/test_ops.py3489CODE
LOW…onverters/mil/frontend/tensorflow2/test/test_v2_ops.py767CODE
LOW…verters/mil/frontend/tensorflow2/test/testing_utils.py70CODE
LOW…verters/mil/frontend/tensorflow2/test/testing_utils.py249CODE
LOWcoremltools/converters/mil/mil/input_type.py253CODE
LOW…rters/mil/mil/passes/tests/test_quantization_passes.py843CODE
LOW…rters/mil/mil/passes/tests/test_quantization_passes.py2790CODE
LOW…rters/mil/mil/passes/defs/lower_complex_dialect_ops.py403CODE
LOW…rters/mil/mil/passes/defs/lower_complex_dialect_ops.py412CODE
LOW…/converters/mil/mil/passes/defs/optimize_activation.py657CODE
LOWcoremltools/converters/mil/mil/tests/test_programs.py536CODE
LOWcoremltools/converters/mil/mil/tests/test_programs.py431CODE
LOW…emltools/converters/mil/mil/ops/tests/testing_utils.py56CODE
LOW…verters/mil/mil/ops/tests/iOS16/test_scatter_gather.py140CODE
LOW…verters/mil/mil/ops/tests/iOS16/test_scatter_gather.py241CODE
LOW…/mil/mil/ops/tests/iOS18/test_tensor_transformation.py19CODE
LOW…verters/mil/mil/ops/tests/iOS17/test_scatter_gather.py328CODE
LOW…verters/mil/mil/ops/tests/iOS17/test_scatter_gather.py362CODE
LOW…verters/mil/mil/ops/tests/iOS17/test_scatter_gather.py403CODE
LOW…verters/mil/mil/ops/tests/iOS17/test_scatter_gather.py456CODE
LOW…rters/mil/mil/ops/tests/iOS14/test_tensor_operation.py137CODE
LOW…verters/mil/mil/ops/tests/iOS14/test_scatter_gather.py178CODE
LOW…verters/mil/mil/ops/tests/iOS14/test_scatter_gather.py458CODE
LOW…verters/mil/mil/ops/tests/iOS14/test_scatter_gather.py479CODE
LOW…verters/mil/mil/ops/tests/iOS14/test_scatter_gather.py586CODE
LOW…verters/mil/mil/ops/tests/iOS14/test_scatter_gather.py673CODE
LOW…tools/converters/mil/mil/ops/defs/iOS18/compression.py164CODE
LOWcoremltools/converters/mil/mil/ops/defs/iOS15/linear.py359CODE
LOWcoremltools/models/neural_network/builder.py271CODE
LOWcoremltools/models/neural_network/builder.py2263CODE
LOWcoremltools/models/neural_network/builder.py2547CODE
11 more matches not shown…
Excessive Try-Catch Wrapping49 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUMcoremlpython/CoreMLPythonUtils.mm407 py::print("Error: value type not convertible:");CODE
MEDIUMmlmodel/docs/readme_session.py40 print("Error (code " + str(response.status_code) + "): " + response.text)CODE
LOWcoremltools/optimize/torch/_utils/torch_utils.py63 except Exception:CODE
LOW…ols/test/optimize/torch/conversion/conversion_utils.py76 except Exception as err:CODE
LOWcoremltools/test/neural_network/test_model.py220 except Exception as e:CODE
LOW⚡coremltools/test/neural_network/test_nn_builder.py617 except Exception as e:CODE
LOW…ols/test/ml_program/experimental/test_remote_device.py48 except Exception:CODE
MEDIUM…ols/test/ml_program/experimental/test_remote_device.py39def has_xcodebuild():CODE
LOWcoremltools/converters/mil/frontend/milproto/load.py35except Exception as e:CODE
LOWcoremltools/converters/mil/frontend/torch/ops.py114 except Exception as e:CODE
LOWcoremltools/converters/mil/frontend/torch/load.py105 except Exception as e:CODE
LOWcoremltools/converters/mil/frontend/torch/load.py130 except Exception as e:CODE
LOWcoremltools/converters/mil/frontend/tensorflow/load.py212 except Exception as e:CODE
LOWcoremltools/converters/mil/frontend/tensorflow/load.py315 except Exception:CODE
LOW…ntend/tensorflow/tf_graph_pass/constant_propagation.py152 except Exception as e:CODE
MEDIUM…ntend/tensorflow/tf_graph_pass/constant_propagation.py66def _constant_propagation(fn, new_graph, constant_nodes, constant_node_num_outpuCODE
LOWcoremltools/converters/mil/frontend/tensorflow2/load.py181 except Exception as e:CODE
LOWcoremltools/converters/mil/backend/mil/load.py54except Exception as e:CODE
LOW…mil/backend/mil/passes/adjust_io_to_supported_types.py167 except Exception as e:CODE
LOWcoremltools/converters/mil/mil/types/type_int.py52 except Exception:CODE
LOWcoremltools/converters/mil/mil/passes/pass_pipeline.py499 except Exception as e:CODE
LOW…rters/mil/mil/passes/defs/cleanup/const_elimination.py46 except Exception as e:CODE
LOWcoremltools/converters/lightgbm/_tree.py87 except Exception:CODE
LOWcoremltools/models/compute_plan.py21except Exception as e:CODE
LOWcoremltools/models/compute_plan.py27except Exception as e:CODE
LOWcoremltools/models/model.py56except Exception as e:CODE
LOWcoremltools/models/model.py63except Exception as e:CODE
LOWcoremltools/models/model.py618 except Exception:CODE
LOWcoremltools/models/utils.py220 except Exception as e:CODE
LOWcoremltools/models/utils.py1486 except Exception as err:CODE
LOW⚡coremltools/models/compute_device.py13except Exception as e:CODE
LOW⚡coremltools/models/compute_device.py19except Exception as e:CODE
LOW⚡coremltools/models/compute_device.py25except Exception as e:CODE
LOW⚡coremltools/models/compute_device.py31except Exception as e:CODE
LOWcoremltools/models/neural_network/quantization_utils.py555 except Exception as e:CODE
LOWcoremltools/models/neural_network/quantization_utils.py1369 except Exception as e:CODE
LOWcoremltools/models/neural_network/quantization_utils.py1404 except Exception as e:CODE
LOW…ools/models/ml_program/experimental/debugging_utils.py405 except Exception as e:CODE
LOW⚡…s/models/ml_program/experimental/compute_plan_utils.py32except Exception as e:CODE
LOW⚡…s/models/ml_program/experimental/compute_plan_utils.py39except Exception as e:CODE
LOW⚡…s/models/ml_program/experimental/compute_plan_utils.py46except Exception as e:CODE
LOW⚡…s/models/ml_program/experimental/compute_plan_utils.py53except Exception as e:CODE
LOW…ltools/models/ml_program/experimental/async_wrapper.py413 except Exception as e:CODE
MEDIUM…ltools/models/ml_program/experimental/async_wrapper.py410def retrieve_compute_plan(self) -> MLComputePlan:CODE
LOW…odels/ml_program/experimental/torch/debugging_utils.py1658 except Exception as e:CODE
LOW…odels/ml_program/experimental/torch/debugging_utils.py2140 except Exception as e:CODE
LOWdeps/pybind11/tests/conftest.py23except Exception:CODE
LOWdeps/pybind11/tests/test_thread.py18 except Exception as e:CODE
MEDIUMdeps/pybind11/tests/test_thread.py14def run(self):CODE
AI Slop Vocabulary18 hits · 33 pts
SeverityFileLineSnippetContext
LOWcoremltools/optimize/_utils.py490 # Set channel axis if we can infer it from block sizes; else just use the default oneCOMMENT
LOWcoremltools/optimize/_utils.py736 # If non_single_dim is empty, it means it's per-tensor quantization, just use a dummy axis.COMMENT
LOWcoremltools/optimize/coreml/_quantization_passes.py1470 # the sparse version of the quant op; instead we just use the dense version ofCOMMENT
LOW…ools/test/sklearn_tests/test_k_neighbors_classifier.py231 ] # the labels themselves don't matter - just use 100 of the Iris onesCODE
LOWcoremltools/converters/mil/frontend/_utils.py826 # Empty non_single_dim means per-tensor quantization, just use a dummy axis.COMMENT
LOWcoremltools/converters/mil/frontend/torch/converter.py169 # we just use floating-point tensors after dequantization. This means that information aboutCOMMENT
MEDIUM…ltools/converters/mil/frontend/torch/internal_graph.py266 # to leverage the existing TorchScript converter infraCOMMENT
LOWcoremltools/converters/mil/frontend/torch/ops.py6593 # Handling x[:], just pass through the tensor.COMMENT
MEDIUM⚡…remltools/converters/mil/frontend/torch/dialect_ops.py22# No backend would support any of the op here. These ops exist to facilitateCOMMENT
LOW…nd/torch/ssa_passes/torch_upsample_to_core_upsample.py108 # so we can just return scale factor 1 for that caseCOMMENT
MEDIUM…ools/converters/mil/frontend/tensorflow/dialect_ops.py17# No backend would support any of the op here. These ops exist to facilitateCOMMENT
MEDIUM…rflow2/tf_graph_pass/rewrite_control_flow_functions.py238 # utilize FunctionDef's ret to make sure function outputs andSTRING
MEDIUM…rflow2/tf_graph_pass/rewrite_control_flow_functions.py487 # utilize FunctionDef's ret to make sure function outputs andSTRING
LOWcoremltools/converters/sklearn/_converter_internal.py197 # In the corner case that it's only the dict vectorizer here, just returnCOMMENT
MEDIUMcoremltools/converters/sklearn/_converter_internal.py223 # into the form expected by scipy's pipelines. Essentially this is aCOMMENT
LOWcoremltools/models/neural_network/builder.py2490 # If weight comes from another tensor just returnSTRING
MEDIUMdeps/pybind11/tests/test_numpy_array.py604# HINT: An easy and robust way (although only manual unfortunately) to check forCOMMENT
LOWdeps/pybind11/tests/test_modules.py110 # changes in future Python versions, simply add the new expected exception types here.COMMENT
Redundant / Tautological Comments13 hits · 23 pts
SeverityFileLineSnippetContext
LOWcoremltools/optimize/torch/_utils/k_means.py952 # Check if workers are still running, in which case they may still be chewing on data and weCOMMENT
LOW⚡coremltools/optimize/torch/_utils/validation_utils.py105 # Check if the output-channel block size is divisible by the axis lengthCOMMENT
LOW⚡coremltools/optimize/torch/_utils/validation_utils.py112 # Check if the input-channel block size is divisible by the axis lengthCOMMENT
LOW⚡…version/palettization/test_palettization_conversion.py474 # Verify if number of bits is correct.COMMENT
LOWcoremltools/test/converters/torch/test_ops.py17# Check if pytorch module is installedCOMMENT
LOWcoremltools/test/neural_network/test_numpy_nn_layers.py6904 # Check if dilated kernel size exceeds padded input size inCOMMENT
LOWcoremltools/converters/mil/frontend/torch/ops.py2666 # Check if pad is a list (which happens when `_array_construct` returnsCOMMENT
LOW…rontend/tensorflow/tf_graph_pass/fuse_dilation_conv.py40 # Check if Conv1D/Conv2D is surrounded by SpaceToBatchND and BatchToSpaceNDCOMMENT
LOW⚡…frontend/tensorflow/ssa_passes/tf_lstm_to_core_lstm.py221 # Check if the tf lstm op can be replaced with coreml lstm opCOMMENT
LOWcoremltools/converters/mil/test/test_rms_norm.py14# Check if pytorch module is installedCOMMENT
LOW…il/mil/passes/defs/optimize_activation_quantization.py195 # Check if 2nd operation is part of a valid pattern.COMMENT
LOW⚡coremltools/models/model.py1008 # Set ValueType to dictionary of string to stringCOMMENT
LOWcoremltools/models/model.py1048 # Check if the input name given by the user is valid.COMMENT
Cross-Language Confusion2 hits · 16 pts
SeverityFileLineSnippetContext
HIGHcoremltools/converters/mil/frontend/torch/ops.py196 context.push((block.inputs, inputs))CODE
HIGH⚡…s/mil/frontend/torch/test/test_torch_conversion_api.py295 # All PyTorch ops in the example model are supported, so they should all return trueCOMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWcoremltools/optimize/torch/_utils/graph_utils.py58 if node.op == "placeholder":CODE
LOWcoremltools/optimize/torch/_utils/graph_utils.py360 if node.op == "placeholder":CODE
LOW⚡…s/test/sklearn_tests/test_nearest_neighbors_builder.py96 builder.author = "John Doe"CODE
LOW⚡…s/test/sklearn_tests/test_nearest_neighbors_builder.py97 self.assertEqual(builder.author, "John Doe")CODE
LOW⚡…s/test/sklearn_tests/test_nearest_neighbors_builder.py98 self.assertEqual(builder.spec.description.metadata.author, "John Doe")CODE
LOWcoremltools/converters/mil/frontend/torch/converter.py1320 source=ScopeSource.TORCHSCRIPT_MODULE_TYPE, data="placeholder"CODE
LOW…ltools/converters/mil/frontend/torch/internal_graph.py656 elif node.op == "placeholder":CODE
LOWcoremltools/converters/mil/frontend/torch/exir_utils.py117 if node.op == "placeholder":CODE
LOWcoremltools/converters/mil/frontend/tensorflow/parse.py136 elif attr.HasField("placeholder"):CODE
LOW…nverters/mil/frontend/tensorflow/test/testing_utils.py93 instance 'placeholder:0' could become 'placeholder'.STRING
LOW…odels/ml_program/experimental/torch/debugging_utils.py2098 op_type_to_skip = ["placeholder", "get_attr", "call_module"]CODE
LOW…odels/ml_program/experimental/torch/debugging_utils.py2144 if node.op == "get_attr" or node.op == "placeholder":CODE
AI Response Leakage3 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…ols/optimize/torch/quantization/quantization_config.py180 # In this example, from step 0 onwards, observers will collect statisticsSTRING
HIGHcoremltools/optimize/coreml/_config.py650 # In this example, we assume elements in the weights >= 0STRING
HIGHdocs-guides/source/convert-nlp-model.md15You can apply a [mix of scripting and tracing](model-scripting.md#mix-tracing-and-scripting) to optimize which parts of CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHcoremltools/converters/mil/mil/types/type_mapping.py264 Get the smallest type to which the given scalar types can be cast. Args: dtype1 (builtin): dtySTRING
HIGHcoremltools/converters/mil/mil/types/type_mapping.py301 Get the smallest promoted dtype, to which all scalar dtypes (provided through dtypes list argument) can be casted. STRING
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippetContext
LOW…ols/test/optimize/torch/quantization/test_quantizer.py382 def my_method(self):CODE
LOWcoremltools/converters/mil/mil/types/type_state.py13 def helper(state_type):CODE
LOWcoremltools/converters/mil/mil/types/type_tensor.py27 def helper(x, y):CODE
LOWcoremltools/converters/mil/mil/types/type_dict.py16 def helper(x, y):CODE
LOWcoremltools/converters/mil/mil/types/type_list.py16 def helper(x, init_length=None, dynamic_length=True):CODE
LOWcoremltools/converters/mil/mil/types/type_tuple.py17 def helper(x):CODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs-guides/source/custom-operators.md31## Step 1: Register the MIL OperatorCOMMENT
LOWdocs-guides/source/custom-operators.md104## Step 2: Define a TensorFlow Composite OperatorCOMMENT
LOWdocs-guides/source/custom-operators.md126## Step 3: Convert the ModelCOMMENT
LOWdocs-guides/source/custom-operators.md139## Step 4: Implement Classes in SwiftCOMMENT
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…ize/torch/quantization/modules/conv_transpose_fused.py38__all__ = ["ConvTransposeBn1d", "ConvTransposeBn2d", "ConvTransposeBn3d"]CODE
LOW…/optimize/torch/quantization/modules/conv_transpose.py21__all__ = ["ConvTranspose1d", "ConvTranspose2d", "ConvTranspose3d"]CODE
LOW…mltools/optimize/torch/pruning/_base_pruning_method.py44 def update_mask(self, module: _torch.nn.Module, scheduled_value: float) -> None:CODE
LOW…mltools/optimize/torch/pruning/_base_pruning_method.py257 def update_mask(self, module: _torch.nn.Module, scheduled_value: float) -> None:CODE
LOWcoremltools/converters/mil/mil/block.py1120 def set_output_types(self, outputs: Optional[List["_input_types.InputType"]] = None) -> None:CODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…mltools/converters/mil/mil/passes/tests/test_passes.py2039CODE
MEDIUM…mltools/converters/mil/mil/passes/tests/test_passes.py2040CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…lidation/NeuralNetwork/NeuralNetworkLayerValidator.cpp34 // We need to check if the ConvolutionPaddingType is setCOMMENT
LOW…lidation/NeuralNetwork/NeuralNetworkLayerValidator.cpp499 // We need to check if the PoolingPaddingType is setCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…ce/updatable-tiny-drawing-classifier-pipeline-model.md121 # Inputs are the inputs from the embedding modelCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdeps/pybind11/tools/libsize.py7# Usage:COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdeps/pybind11/tests/test_numpy_array.py611# value increases without bounds. (Don't forget to Ctrl-C the test!)COMMENT