MCPcopy Create free account

hub / github.com/apple/coremltools / functions

Functions41,379 in github.com/apple/coremltools

↓ 1 callersMethod__refresh_category_files
(self, category)
mlmodel/docs/readme_session.py:140
↓ 1 callersMethod__refresh_versions
(self)
mlmodel/docs/readme_session.py:91
↓ 1 callersMethod__repr__
(self)
coremltools/converters/mil/mil/types/type_spec.py:36
↓ 1 callersMethod__repr__
(self)
coremltools/converters/mil/mil/types/type_spec.py:79
↓ 1 callersMethod__repr__
(self)
coremltools/models/model.py:687
↓ 1 callersMethod__setslice__
Sets the subset of items from between the specified indices.
deps/protobuf/python/google/protobuf/internal/containers.py:180
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/input_types.py:172
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/input_types.py:305
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/input_types.py:360
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/input_types.py:425
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/input_types.py:515
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/input_types.py:625
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/mil/block.py:973
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/mil/block.py:1077
↓ 1 callersMethod__str__
(self, print_attr: Optional[bool] = False)
coremltools/converters/mil/mil/program.py:317
↓ 1 callersMethod__str__
(self)
coremltools/converters/mil/mil/input_type.py:186
↓ 1 callersMethod__str__
(self, indent=2)
coremltools/converters/mil/frontend/torch/internal_graph.py:314
↓ 1 callersFunction_adaptive_pool2d_non_fixed_kernel_size_and_stride
If the input dimension is not evenly divisible by the output dimension, then the stride and kernel size used by PyTorch is not fixed. This is
coremltools/converters/mil/frontend/torch/ops.py:2549
↓ 1 callersFunction_add_batch_norm
()
coremltools/converters/mil/frontend/torch/ops.py:2742
↓ 1 callersFunction_add_batch_norm
(x, mean, variance, scale, offset, epsilon, name)
coremltools/converters/mil/frontend/tensorflow2/ops.py:23
↓ 1 callersFunction_add_batch_norm_1d
()
coremltools/converters/mil/frontend/torch/ops.py:2727
↓ 1 callersFunction_add_batch_norm_dynamic
()
coremltools/converters/mil/frontend/torch/ops.py:2693
↓ 1 callersFunction_add_classify_op
Add a "classify" op to the program, at the end of the main block
coremltools/converters/mil/backend/mil/load.py:522
↓ 1 callersMethod_add_const
(cls, val, name, before_op)
coremltools/converters/mil/mil/builder.py:112
↓ 1 callersMethod_add_const
Create a const op and add it to the graph.
coremltools/converters/mil/frontend/torch/converter.py:1214
↓ 1 callersFunction_add_fp32_casts
(block: _mil.Block, boundary_vars: _List[_mil.Var])
coremltools/models/utils.py:2195
↓ 1 callersFunction_add_gru_layer
Add a single GRU layer. Please note that the Core ML GRU has different definition from Torch, so we cannot use mb.gru, and need to implem
coremltools/converters/mil/frontend/torch/ops.py:3228
↓ 1 callersMethod_add_ldflags
(self, flags: list[str])
deps/pybind11/pybind11/setup_helpers.py:119
↓ 1 callersFunction_add_mil_lstm
Most of this code is to transform the tensors into a shape acceptable by the Core ML implementation of LSTM. For weights, biases, per d
coremltools/converters/mil/frontend/torch/ops.py:3611
↓ 1 callersFunction_add_multiarray_ndshape_enumeration_for_feature
( feature: "_proto.Model_pb2.FeatureDescription", enumerated_shapes: _List[_Tuple[int]], allow_dup
coremltools/models/neural_network/flexible_shape_utils.py:374
↓ 1 callersMethod_add_op
Add an op of type `op_cls` (e.g., convolution) to current block.
coremltools/converters/mil/mil/builder.py:191
↓ 1 callersMethod_add_output_sinks
(self)
coremltools/converters/mil/mil/passes/defs/optimize_repeat_ops.py:829
↓ 1 callersFunction_adjust_concat_surrounding_activation_stats
Adjust the activation calibration stats of inputs/outputs to the same concat ops to maximize hardware efficiency. Tensor values of inputs/out
coremltools/optimize/coreml/experimental/_post_training_quantization.py:149
↓ 1 callersMethod_adjust_default_input_to_fp16
An utility function that sets the default input dtype to fp16
coremltools/converters/mil/frontend/torch/converter.py:765
↓ 1 callersMethod_adjust_default_output_to_fp16
An utility function that sets the default outputs with inferred type fp32 to fp16. - If the inferred output dtype is fp32, and the u
coremltools/converters/mil/frontend/torch/converter.py:780
↓ 1 callersFunction_adjust_func_inputs
Changes the dtype of the provided variable according to the rules outlined in the top level pass comment (see adjust_io_to_supported_type
coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py:213
↓ 1 callersFunction_adjust_io_to_supported_types
(func, is_main)
coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py:236
↓ 1 callersFunction_adjust_main_inputs
Adjust the inputs in main func. If the input's dtype is not in Core ML I/O supported types, we do following steps: 1. Change the inp
coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py:107
↓ 1 callersFunction_adjust_main_outputs
Adjust the outputs in the main func to make sure they have Core ML I/O supported types.
coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py:176
↓ 1 callersMethod_adjust_sym_val
For sub-byte dtype var, adjust the sym_val to make sure it reflects the true dtype.
coremltools/converters/mil/mil/var.py:137
↓ 1 callersFunction_all_assert_leaves
Does the given node lead to only assertions? Args: gdict (dict): The node's graph. nodename (str): The name of the node to t
coremltools/converters/mil/frontend/tensorflow/tf_graph_pass/delete_asserts.py:17
↓ 1 callersFunction_all_outputs_present
Returns true if all the symbols in the graph's output list are present in context.
coremltools/converters/mil/frontend/torch/ops.py:86
↓ 1 callersMethod_annotate_all_patterns
( self, model: _torch.fx.GraphModule, quantization_config: _Optional[_ModuleLinearQuan
coremltools/optimize/torch/quantization/_coreml_quantizer.py:585
↓ 1 callersMethod_annotate_graph
( self, graph: torch._C.Graph, )
coremltools/models/ml_program/experimental/torch/debugging_utils.py:269
↓ 1 callersMethod_apply_block
(self, block: Block)
coremltools/converters/mil/mil/passes/defs/optimize_state.py:66
↓ 1 callersMethod_apply_block
(self, block: Block)
coremltools/converters/mil/mil/passes/defs/optimize_state.py:180
↓ 1 callersMethod_apply_block
(self, block: Block)
coremltools/converters/mil/mil/passes/defs/optimize_tensor_operation.py:720
↓ 1 callersFunction_apply_graph_pass
( mlmodel: "_ct.models.MLModel", graph_pass: _Union[_AbstractGraphPass, _Iterable[_AbstractGraphPass]]
coremltools/models/utils.py:1343
↓ 1 callersMethod_apply_transform
Utility function to test the weight/bias transform function in linear bias fusion pass.
coremltools/converters/mil/mil/passes/tests/test_passes.py:6682
↓ 1 callersMethod_apply_transform
Utility function to test the weight/bias transform function in linear bias fusion pass.
coremltools/converters/mil/mil/passes/tests/test_optimize_linear_passes.py:28
↓ 1 callersMethod_apply_weight_transform
Utility function to test the weight transform function in conv scale fusion pass.
coremltools/converters/mil/mil/passes/tests/test_passes.py:3780
↓ 1 callersMethod_are_ops_identical
Return True, if all inputs of op1 and op2 are identical. non-constant inputs must refer to the same object. For constant inp
coremltools/converters/mil/mil/passes/defs/cleanup/remove_redundant_ops.py:120
↓ 1 callersFunction_assign_ids_to_program_operations
( program_spec: proto.MIL_pb2.Program, id_generator: Callable[[proto.MIL_pb2.Operation], str], att
coremltools/models/ml_program/experimental/compute_plan_utils.py:421
↓ 1 callersMethod_attach_qconfig
Attach :py:class:`QConfig` to a module so that it can be palettized.
coremltools/optimize/torch/palettization/palettizer.py:206
↓ 1 callersMethod_auto_val
# Evaluation has two stages: # # Stage 1: Check whether the method value_inference() is implemented # # Stage
coremltools/converters/mil/mil/operation.py:357
↓ 1 callersFunction_backfill_make_list_elem_type_block
(block)
coremltools/converters/mil/frontend/tensorflow/ssa_passes/backfill_make_list_elem_type.py:31
↓ 1 callersMethod_benchmark_model_predict
( model: MLModel, iterations: int, inputs: Dict[str, Any], warmup: bool, )
coremltools/models/ml_program/experimental/perf_utils.py:317
↓ 1 callersFunction_bn_scale_fusion
(bn_idx, scale_idx, layers)
coremltools/models/neural_network/optimization_utils.py:97
↓ 1 callersFunction_booster_feature_names_workaround
Removes booster feature names. This is intended as a workaround for faulty JSON dump generated by get_dump(dump_format='json') and dump_model
coremltools/converters/xgboost/_tree_ensemble.py:292
↓ 1 callersFunction_broadcast_tensor_to_same_batch_dims
(x: Var, batch_dims_var: Var)
coremltools/converters/mil/frontend/torch/ops.py:8779
↓ 1 callersFunction_broadcast_values
(x: Var, index: Var, values: Var)
coremltools/converters/mil/frontend/torch/ops.py:5185
↓ 1 callersMethod_build_block
(self, block_inputs)
coremltools/converters/mil/mil/ops/defs/iOS15/control_flow.py:389
↓ 1 callersMethod_cache_model_hierarchy_for_params
(self)
coremltools/converters/mil/frontend/torch/internal_graph.py:545
↓ 1 callersFunction_calculate_pool_output_size
(in_dim, kernel, stride, pad_l, pad_r, ceil_mode)
coremltools/converters/mil/frontend/torch/ops.py:1834
↓ 1 callersMethod_canonicalize_materialization_map
User input ``materialization_map`` maps input names to fixed shapes, but what a rigorous graph pass really need is a map from symbols
coremltools/converters/mil/mil/passes/defs/symbol_transform.py:139
↓ 1 callersFunction_cast_bool_attn_mask
compute float mask as (1 - cast(bool_mask)) * -30k
coremltools/converters/mil/frontend/torch/ops.py:8884
↓ 1 callersMethod_cast_check_value_inferene
If one of the input is tensor, cast the result to tensor.
coremltools/converters/mil/mil/ops/defs/iOS15/elementwise_binary.py:64
↓ 1 callersFunction_cast_from_quantized_dtype
Cast the input from quantized dtype to dequantized dtype.
coremltools/optimize/_utils.py:163
↓ 1 callersFunction_cast_input_type
( feature_desc: "_proto.Model_pb2.FeatureDescription", feature_var: _mil.Var, first_op
coremltools/models/utils.py:2399
↓ 1 callersFunction_cast_output_type
( feature_desc: "_proto.Model_pb2.FeatureDescription", feature_var: _mil.Var )
coremltools/models/utils.py:2416
↓ 1 callersFunction_cast_to_quantized_dtype
Cast the input from dequantized dtype to quantized dtype.
coremltools/optimize/_utils.py:158
↓ 1 callersFunction_characterize_qmodel_perf_with_data_dir
(fpmodel, qspec, data_dir)
coremltools/models/neural_network/quantization_utils.py:1327
↓ 1 callersFunction_characterize_quantized_model_perf
(fpmodel, qspec, sample_data)
coremltools/models/neural_network/quantization_utils.py:1384
↓ 1 callersFunction_check_algorithm
Ensure the kNeighbors algorithm for the given scikit model is a supported type
coremltools/converters/sklearn/_k_neighbors_classifier.py:194
↓ 1 callersFunction_check_axes_and_var_shape
(negative_axes, shape)
coremltools/converters/mil/experimental/passes/generic_layernorm_instancenorm_pattern_fusion.py:360
↓ 1 callersMethod_check_const_op_is_valid
(self, op)
coremltools/optimize/coreml/_config.py:489
↓ 1 callersFunction_check_deployment_target
(minimum_deployment_target)
coremltools/converters/_converters_entry.py:715
↓ 1 callersFunction_check_distance_metric
Simple wrapper to ensure the distance metric is valid for CoreML conversion
coremltools/converters/sklearn/_k_neighbors_classifier.py:236
↓ 1 callersMethod_check_equal_value
(val1, val2)
coremltools/converters/mil/mil/ops/defs/iOS15/control_flow.py:369
↓ 1 callersMethod_check_expected_inputs
Check that all kwargs are one of the following: - system inputs (non-attributes) - op inputs (self._input_types.keys())
coremltools/converters/mil/mil/operation.py:198
↓ 1 callersMethod_check_fp16_weight_param_exists
Checks if the network has at least one ``weight_param`` which is in FP16 format. Parameters ---------- layers: list
coremltools/models/neural_network/builder.py:784
↓ 1 callersMethod_check_fp16_weight_params_lstms
Checks if an LSTM layer has at least one ``weight_param`` which is in FP16 format. Parameters ---------- lstm_wp: LS
coremltools/models/neural_network/builder.py:745
↓ 1 callersMethod_check_has_scope_info
Check no ops in the function are missing scope information.
coremltools/converters/mil/mil/block.py:157
↓ 1 callersMethod_check_invalid_const_tensor_input
Check if non const tensor feed into const input. This might happen in the early stage of conversion, for instance: conste
coremltools/converters/mil/mil/program.py:167
↓ 1 callersMethod_check_invalid_opset
Check if the program consists of opsets not supported by runtime.
coremltools/converters/mil/mil/program.py:129
↓ 1 callersMethod_check_invalid_tensor_rank
Check if the program consists of tensors with rank >= 6.
coremltools/converters/mil/mil/program.py:142
↓ 1 callersMethod_check_is_const_tuple_with_scalar
This utility function checks the param is a Tuple of scalar with expected data type.
coremltools/converters/mil/mil/ops/defs/iOS16/tensor_transformation.py:90
↓ 1 callersFunction_check_is_quantized_tensor
(node, module)
coremltools/converters/mil/frontend/torch/torchscript_utils.py:87
↓ 1 callersFunction_check_is_tensor
(node, module)
coremltools/converters/mil/frontend/torch/torchscript_utils.py:80
↓ 1 callersMethod_check_metrics
Check the metrics
coremltools/test/xgboost_tests/test_decision_tree_regression_numeric.py:38
↓ 1 callersMethod_check_metrics
(self, metrics, params={})
coremltools/test/xgboost_tests/test_boosted_trees_classifier_numeric.py:51
↓ 1 callersMethod_check_metrics
(self, metrics, params={})
coremltools/test/xgboost_tests/test_boosted_trees_regression_numeric.py:40
↓ 1 callersMethod_check_metrics
Check the metrics
coremltools/test/xgboost_tests/test_boosted_trees_regression_numeric.py:116
↓ 1 callersMethod_check_metrics
(self, metrics, params={}, allowed_error={})
coremltools/test/xgboost_tests/test_boosted_trees_regression_numeric.py:224
↓ 1 callersMethod_check_metrics
(self, metrics, params={})
coremltools/test/xgboost_tests/test_decision_tree_classifier_numeric.py:27
↓ 1 callersMethod_check_metrics
Check the metrics
coremltools/test/sklearn_tests/test_random_forest_regression_numeric.py:44
↓ 1 callersMethod_check_metrics
(self, metrics, params={})
coremltools/test/sklearn_tests/test_random_forest_classifier_numeric.py:27
↓ 1 callersMethod_check_ops
Returns the set of ops in @graph that are implemented, and the set for which no conversion function is registered. @graph can be
coremltools/converters/mil/frontend/torch/converter.py:802
↓ 1 callersMethod_check_ops_version_compatibility
(self, max_opset_version)
coremltools/converters/mil/mil/program.py:74
↓ 1 callersMethod_check_or_set_functions_opset_version
(self, max_opset_version)
coremltools/converters/mil/mil/program.py:95
← previousnext →9,301–9,400 of 41,379, ranked by callers