Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/coremltools
/ functions
Functions
41,379 in github.com/apple/coremltools
⨍
Functions
41,379
◇
Types & classes
6,698
↳
Endpoints
1,092
↓ 2 callers
Function
_upb_sizelg2
Used by old generated code, remove once all code has been regenerated. */
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1452
↓ 2 callers
Function
_upb_symtab_addfile
deps/protobuf/php/ext/google/protobuf/php-upb.c:6876
↓ 2 callers
Function
_upb_symtab_addfile
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:6491
↓ 2 callers
Function
_upb_tag_arrptr
deps/protobuf/php/ext/google/protobuf/php-upb.h:1354
↓ 2 callers
Function
_upb_tag_arrptr
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1358
↓ 2 callers
Function
_upb_value_val
deps/protobuf/php/ext/google/protobuf/php-upb.c:1875
↓ 2 callers
Function
_upb_value_val
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:1875
↓ 2 callers
Method
_validate
()
coremltools/models/ml_program/experimental/remote_device.py:600
↓ 2 callers
Method
_validate_and_set_inputs
For each k, v in `input_kvs`, perform the following: - Check k exists in `self.input_specs` - Check that v satisfies the cor
coremltools/converters/mil/mil/operation.py:475
↓ 2 callers
Method
_validate_dict
(cls: _Type, config_dict: _Dict[str, _Any])
coremltools/optimize/torch/_utils/python_utils.py:118
↓ 2 callers
Method
_validate_lut_inputs
( indices_shape: List[int], indices_dtype: types, lut_shape: List[int], vector_axis: Var )
coremltools/converters/mil/mil/ops/defs/iOS18/compression.py:302
↓ 2 callers
Function
_validate_module_type_keys_factory
(supported_modules)
coremltools/optimize/torch/optimization_config.py:174
↓ 2 callers
Method
_validate_op_type
A utility function checking if an op type is valid for the configuration
coremltools/optimize/coreml/_config.py:36
↓ 2 callers
Method
_validate_same_params
This method validates that all the parameters in param_names have the same value across all the module level configs.
coremltools/optimize/torch/optimization_config.py:109
↓ 2 callers
Method
_validate_samples
Validate the float samples returned from the converted scikit KNeighborsClassifier
coremltools/test/sklearn_tests/test_nearest_neighbors_builder.py:386
↓ 2 callers
Method
_validate_shift_scale_inputs
( data_shape: List[int], data_dtype: types, scale: Var, offset: Var )
coremltools/converters/mil/mil/ops/defs/iOS18/compression.py:87
↓ 2 callers
Function
_value_at
input x: 1D tensor (vector). return value at index idx. x[idx].
coremltools/converters/mil/frontend/tensorflow/ops.py:73
↓ 2 callers
Method
_verify_model_io
This utility function verifies the model's i/o dtypes and expected ops
coremltools/converters/mil/frontend/torch/test/test_torch_conversion_api.py:2639
↓ 2 callers
Function
_verify_optimization_hint_input
Throws an exception if ``optimization_hint_input`` is not valid.
coremltools/models/model.py:120
↓ 2 callers
Method
accept
! @brief public accept interface @param[in] strict whether to expect the last token to be EOF @return whether the input is a proper JSON
deps/nlohmann/json.hpp:10586
↓ 2 callers
Method
add1
NOLINTNEXTLINE(performance-unnecessary-value-param)
deps/pybind11/tests/test_methods_and_attributes.cpp:40
↓ 2 callers
Method
add3
passing by reference
deps/pybind11/tests/test_methods_and_attributes.cpp:42
↓ 2 callers
Method
addDescriptor
($descriptor)
deps/protobuf/php/src/Google/Protobuf/Internal/DescriptorPool.php:93
↓ 2 callers
Function
addMeanSquareError
mlmodel/tests/ParameterTests.cpp:255
↓ 2 callers
Method
addPackage
Adds a package to the symbol tables. If a package by the same name already exists, that is fine, but if some other kind of symbol exists under the sam
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:2651
↓ 2 callers
Method
addPackedInt32Element
* Adds a single int32 value into the field for the given field number. * All values will be encoded as packed values. * @param {number} fieldNum
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2782
↓ 2 callers
Method
addPackedInt64Element
* Adds a single int64 value into the field for the given field number. * All values will be encoded as packed values. * @param {number} fieldNum
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2929
↓ 2 callers
Method
addPackedInt64Iterable
* Adds all int64 values into the field for the given field number. * All these values will be encoded as packed values. * @param {number} fieldN
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2942
↓ 2 callers
Method
addPackedSfixed64Element
* Adds a single sfixed64 value into the field for the given field number. * All values will be encoded as packed values. * @param {number} field
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3223
↓ 2 callers
Method
addPackedSfixed64Iterable
* Adds all sfixed64 values into the field for the given field number. * All these values will be encoded as packed values. * @param {number} fie
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3236
↓ 2 callers
Method
addRepeatedBytesElement
* Adds a single bytes value into the field for the given field number. * @param {number} fieldNumber * @param {!ByteString} value
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3927
↓ 2 callers
Method
addRepeatedBytesIterable
* Adds all bytes values into the field for the given field number. * @param {number} fieldNumber * @param {!Iterable<!ByteString>} values
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3894
↓ 2 callers
Method
addRepeatedGroupIterable
* Adds all message values into the field for the given field number. * @param {number} fieldNumber * @param {!Iterable<!InternalMessage>} values
deps/protobuf/js/experimental/runtime/kernel/kernel.js:4077
↓ 2 callers
Method
addRepeatedMessageElement
* @param {number} fieldNumber * @param {T} value * @param {function(!Kernel):T} instanceCreator * @template T
deps/protobuf/js/experimental/runtime/testing/binary/test_message.js:1764
↓ 2 callers
Method
addRepeatedMessageElement
* Adds a single message value into the field for the given field number. * @param {number} fieldNumber * @param {!InternalMessage} value * @p
deps/protobuf/js/experimental/runtime/kernel/kernel.js:4052
↓ 2 callers
Method
addRepeatedMessageIterable
* @param {number} fieldNumber * @param {!Iterable<T>} values * @param {function(!Kernel):T} instanceCreator * @template T
deps/protobuf/js/experimental/runtime/testing/binary/test_message.js:1740
↓ 2 callers
Method
addRepeatedMessageIterable
* Adds all message values into the field for the given field number. * @param {number} fieldNumber * @param {!Iterable<!InternalMessage>} values
deps/protobuf/js/experimental/runtime/kernel/kernel.js:4010
↓ 2 callers
Method
addRepeatedStringElement
* Adds a single string value into the field for the given field number. * @param {number} fieldNumber * @param {string} value
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3984
↓ 2 callers
Method
addRepeatedStringIterable
* Adds all string values into the field for the given field number. * @param {number} fieldNumber * @param {!Iterable<string>} values
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3951
↓ 2 callers
Method
addUnpackedBoolElement
* Adds a single boolean value into the field for the given field number. * All values will be encoded as unpacked values. * @param {number} fiel
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2119
↓ 2 callers
Method
addUnpackedBoolIterable
* Adds all boolean values into the field for the given field number. * All these values will be encoded as unpacked values. * @param {number} fi
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2132
↓ 2 callers
Method
addUnpackedInt32Element
* Adds a single int32 value into the field for the given field number. * All values will be encoded as unpacked values. * @param {number} fieldN
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2808
↓ 2 callers
Method
addUnpackedInt64Element
* Adds a single int64 value into the field for the given field number. * All values will be encoded as unpacked values. * @param {number} fieldN
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2955
↓ 2 callers
Method
addUnpackedInt64Iterable
* Adds all int64 values into the field for the given field number. * All these values will be encoded as unpacked values. * @param {number} fiel
deps/protobuf/js/experimental/runtime/kernel/kernel.js:2968
↓ 2 callers
Method
addUnpackedSfixed64Element
* Adds a single sfixed64 value into the field for the given field number. * All values will be encoded as unpacked values. * @param {number} fie
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3249
↓ 2 callers
Method
addUnpackedSfixed64Iterable
* Adds all sfixed64 values into the field for the given field number. * All these values will be encoded as unpacked values. * @param {number} f
deps/protobuf/js/experimental/runtime/kernel/kernel.js:3262
↓ 2 callers
Method
add_argmax
Add an argmax layer to the model that returns the indices of the maximum value along a specified axis in the input tensor. Re
coremltools/models/neural_network/builder.py:6765
↓ 2 callers
Method
add_argmin
Add an argmin layer to the model that returns the indices of the minimum value along a specified axis in the input tensor. Re
coremltools/models/neural_network/builder.py:6804
↓ 2 callers
Method
add_argsort
Add an argsort layer to the model. Refer to the ``ArgsortLayerParams`` message in the specification (NeuralNetwork.proto) for more de
coremltools/models/neural_network/builder.py:8852
↓ 2 callers
Method
add_branch_node
Add a branch node to the tree ensemble. Parameters ---------- tree_id: int ID of the tree to add the nod
coremltools/models/tree_ensemble.py:99
↓ 2 callers
Method
add_ceil
Add a ceil layer to the model that performs element-wise ceil operation on the input tensor that rounds the value to the smallest int
coremltools/models/neural_network/builder.py:5621
↓ 2 callers
Method
add_clamped_relu
Add a clamped relu layer to the model. Clamped relu formula is f(x) = min((x >= 0 ? x : alpha * x), beta) Refer to the ``Clam
coremltools/models/neural_network/builder.py:8813
↓ 2 callers
Method
add_crop_resize
Add a crop resize layer to the model. A layer that extracts cropped spatial patches or RoIs (regions of interest) from the input and
coremltools/models/neural_network/builder.py:4591
↓ 2 callers
Method
add_cumsum
Add a cum sum layer to the model computes the cumulative sum values of the input along a given axis. Refer to the ``CumSumLayerParams
coremltools/models/neural_network/builder.py:8776
↓ 2 callers
Function
add_descriptor
deps/protobuf/php/ext/google/protobuf/def.c:893
↓ 2 callers
Method
add_embedding
Add an embedding layer to the model. Refer to the ``EmbeddingLayerParams`` message in the specification (NeuralNetwork.proto)
coremltools/models/neural_network/builder.py:1587
↓ 2 callers
Method
add_erf
Add an erf function (gaussian error function) layer to the model. Refer to the ``ErfLayerParams`` message in the specification (Neura
coremltools/models/neural_network/builder.py:5043
↓ 2 callers
Method
add_fill_static
Add a fill_static layer to the model that outputs a tensor filled with a scalar value given shape as parameter. Refer to the
coremltools/models/neural_network/builder.py:7300
↓ 2 callers
Method
add_flatten_to_2d
Add a flatten_to_2d layer to the model that flattens the input tensor into a 2-dimensional matrix. Refer to the ``FlattenTo2D
coremltools/models/neural_network/builder.py:7516
↓ 2 callers
Method
add_gather_along_axis
Add a gather_along_axis layer to the model that gathers elements or slices from data and store to a tensor whose shape is defined by
coremltools/models/neural_network/builder.py:6574
↓ 2 callers
Method
add_gather_nd
Add a gather layer to the model that gathers elements or slices from data and store to a tensor whose shape is defined by indices fro
coremltools/models/neural_network/builder.py:6653
↓ 2 callers
Method
add_gelu
Add a GELU (gaussian error linear unit) activation layer, which is: ``0.5 * x * (1 + erf(x / sqrt(2)))``. Refer to the ``Gelu
coremltools/models/neural_network/builder.py:5062
↓ 2 callers
Function
add_graph_pass_scope
( src_scopes: Dict[ScopeSource, List[str]], graph_pass_scopes: Dict[ScopeSource, List[str]] )
coremltools/converters/mil/mil/scope.py:115
↓ 2 callers
Method
add_height_range
(self, height_range)
coremltools/models/neural_network/flexible_shape_utils.py:287
↓ 2 callers
Method
add_l2_normalize
Add L2 normalize layer. Normalizes the input by the L2 norm, i.e. divides by the the square root of the sum of squares of all element
coremltools/models/neural_network/builder.py:4307
↓ 2 callers
Method
add_leaf_node
Add a leaf node to the tree ensemble. Parameters ---------- tree_id: int ID of the tree to add the node
coremltools/models/tree_ensemble.py:200
↓ 2 callers
Method
add_matrix_band_part
Add a matrix_band_part layer to the model that copies a tensor setting everything outside a central band in each inner-most matrix to
coremltools/models/neural_network/builder.py:8558
↓ 2 callers
Method
add_metric
(self, output1, output2)
coremltools/models/neural_network/quantization_utils.py:1200
↓ 2 callers
Method
add_metrics
(self, model1_output, model2_output)
coremltools/models/neural_network/quantization_utils.py:1310
↓ 2 callers
Method
add_model
Insert all functions from the model in ``model_path`` into the multifunction descriptor. The function names will remain the same as i
coremltools/models/utils.py:1522
↓ 2 callers
Method
add_model
Add a protobuf spec or :py:class:`models.MLModel` instance to the pipeline. All input features of this model must either match the i
coremltools/models/pipeline.py:175
↓ 2 callers
Method
add_mvn
Add an MVN (mean variance normalization) layer. Computes mean, variance and normalizes the input. Refer to the ``MeanVarianceNormaliz
coremltools/models/neural_network/builder.py:4261
↓ 2 callers
Method
add_nms
Add a non maximum suppression layer. Refer to the ``NonMaximumSuppressionLayerParams`` message in the specification (NeuralNetwork.pr
coremltools/models/neural_network/builder.py:6889
↓ 2 callers
Method
add_one_hot
Add a one hot layer to the model that computes the one hot representation of the input tensor. Refer to the ``OneHotLayerParams`` mes
coremltools/models/neural_network/builder.py:8728
↓ 2 callers
Method
add_op
(self, op_name, op)
coremltools/converters/mil/experimental/passes/generic_pass_infrastructure.py:79
↓ 2 callers
Method
add_pooling
Add a pooling layer to the model that performs spatial pooling. Refer to the ``PoolingLayerParams`` message in the specification
coremltools/models/neural_network/builder.py:2757
↓ 2 callers
Method
add_pooling3d
Add a pooling layer to the model that performs spatial pooling across three dimensions. Refer to the ``Pooling3DLayerParams`` message
coremltools/models/neural_network/builder.py:2899
↓ 2 callers
Method
add_quantization_info
Stores the quantization parameters (torch dtype, scale, zero_point) corresponding to a named var in the graph. zero_point sho
coremltools/converters/mil/frontend/torch/converter.py:178
↓ 2 callers
Method
add_random_bernoulli_dynamic
Add a random_bernoulli_dynamic layer to the model that fills the output tensor with random values from Bernoulli distribution.
coremltools/models/neural_network/builder.py:7971
↓ 2 callers
Method
add_random_bernoulli_static
Add a random_bernoulli_static layer to the model that fills the output tensor with random values from Bernoulli distribution.
coremltools/models/neural_network/builder.py:7934
↓ 2 callers
Method
add_random_normal_dynamic
Add a random_normal_dynamic layer to the model that fills the output tensor with random values from normal distribution. Refe
coremltools/models/neural_network/builder.py:7742
↓ 2 callers
Method
add_random_normal_static
Add a random_normal_static layer to the model that fills the output tensor with random values from normal distribution. Refer
coremltools/models/neural_network/builder.py:7702
↓ 2 callers
Method
add_random_uniform_dynamic
Add a random_uniform_dynamic layer to the model that fills the output tensors with random values from uniform distribution. R
coremltools/models/neural_network/builder.py:7859
↓ 2 callers
Method
add_random_uniform_static
Add a random_uniform_static layer to the model that fills the output tensors with random values from uniform distribution. Re
coremltools/models/neural_network/builder.py:7820
↓ 2 callers
Method
add_range_dynamic
Add a range_dynamic layer that returns a tensor that contains evenly spaced values. This layer has up to three inputs or no input and
coremltools/models/neural_network/builder.py:6011
↓ 2 callers
Method
add_rank_preserving_reshape
Add a rank_preserving_reshape layer to the model that reshapes the input tensor without altering the rank of the tensor. Refe
coremltools/models/neural_network/builder.py:7625
↓ 2 callers
Method
add_reduce_l2
Add a reduce_l2 layer to the model that reduces the input tensor using ``l2_normalization(elements across given dimensions)``.
coremltools/models/neural_network/builder.py:8296
↓ 2 callers
Method
add_reduce_max
Add a reduce_max layer to the model that reduces the input tensor using ``max(elements across given dimensions)``. Refer to t
coremltools/models/neural_network/builder.py:8202
↓ 2 callers
Method
add_reduce_mean
Add a reduce_mean layer to the model that reduces the input tensor using ``mean(elements across given dimensions)``. Refer to
coremltools/models/neural_network/builder.py:8155
↓ 2 callers
Method
add_reshape
Add a reshape layer. Refer to the ``ReshapeLayerParams`` message in the specification (NeuralNetwork.proto) for more details.
coremltools/models/neural_network/builder.py:4074
↓ 2 callers
Method
add_reshape_dynamic
Add a reshape_dynamic layer to the model that reshapes a tensor. Refer to the ``ReshapeDynamicLayerParams`` message in the specificat
coremltools/models/neural_network/builder.py:7598
↓ 2 callers
Method
add_resize_bilinear
Add a resize bilinear layer to the model. A layer that resize the input to a given spatial size using bilinear interpolation. Refer t
coremltools/models/neural_network/builder.py:4532
↓ 2 callers
Method
add_reverse
Add a reverse layer to the model that reverses specific dimensions of the input tensor. Refer to the ``ReverseLayerParams`` m
coremltools/models/neural_network/builder.py:6435
↓ 2 callers
Method
add_reverse_sequence
Add a reverse sequence layer to the model that reverses variable length slices. Refer to the ``ReverseSeqLayerParams`` message in the
coremltools/models/neural_network/builder.py:6465
↓ 2 callers
Method
add_samples
(self, samples: List[float])
coremltools/models/ml_program/experimental/perf_utils.py:190
↓ 2 callers
Method
add_scatter_along_axis
Add a scatter_along_axis layer to the model that scatters data into a new tensor according to indices from the input along the given
coremltools/models/neural_network/builder.py:6602
↓ 2 callers
Method
add_scatter_nd
Add a scatter layer to the model that scatters data into a new tensor according to indices from input. This is the reverse operation
coremltools/models/neural_network/builder.py:6684
↓ 2 callers
Method
add_slice
Add a slice layer. Equivalent to to numpy slice [start_index:end_index:stride], start_index is included, while end_index is exclusive
coremltools/models/neural_network/builder.py:3769
↓ 2 callers
Method
add_sliding_windows
Add a sliding_windows layer to the model that returns a tensor containing all windows of size ``window_size`` * separated by ``step``
coremltools/models/neural_network/builder.py:6397
↓ 2 callers
Method
add_struct
Appends and returns a struct value as the next value in the list.
deps/protobuf/python/google/protobuf/internal/well_known_types.py:835
← previous
next →
5,901–6,000 of 41,379, ranked by callers