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
↓ 7 callers
Method
WriteTo
(pb::CodedOutputStream output)
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestWellKnownTypes.cs:3169
↓ 7 callers
Function
WriteVarintPacked
deps/protobuf/src/google/protobuf/io/coded_stream.h:896
↓ 7 callers
Function
ZigZagEncode32
deps/protobuf/src/google/protobuf/io/coded_stream.h:912
↓ 7 callers
Function
ZigZagEncode64
deps/protobuf/src/google/protobuf/io/coded_stream.h:915
↓ 7 callers
Method
_InternalSerialize
deps/protobuf/src/google/protobuf/api.pb.cc:390
↓ 7 callers
Function
_OptionsOrNone
Returns the value of the field `options`, or None if it is not set.
deps/protobuf/python/google/protobuf/descriptor_pool.py:102
↓ 7 callers
Method
_SetListener
Internal method used by the protocol message implementation. Clients should not call this directly. Sets a listener that this message will ca
deps/protobuf/python/google/protobuf/message.py:370
↓ 7 callers
Method
__init__
(self, conv_transpose)
coremltools/test/optimize/torch/quantization/test_configure.py:622
↓ 7 callers
Function
_assert_changes_post_prepare
( original_module, palettized_module, n_bits, cluster_dim, kmeans_max_iter )
coremltools/test/optimize/torch/palettization/palettization_utils.py:15
↓ 7 callers
Function
_check_var_scalar_value
:param x: var :param val: a scalar value :return: True if x.val is equal to val otherwise return False
coremltools/converters/mil/mil/passes/helper.py:124
↓ 7 callers
Function
_check_visible_modules
(actual: List[str], expected: List[str])
coremltools/test/optimize/torch/test_api_surface.py:15
↓ 7 callers
Method
_from_dict
An abstract method that construct an OpCompressorConfig from a dictionary. It must be implemented in the child class.
coremltools/optimize/coreml/_config.py:44
↓ 7 callers
Method
_get_simple_model
()
coremltools/test/ml_program/experimental/test_torch_debugging_utils.py:24
↓ 7 callers
Method
_get_singlefunction_mlpackage
(opset_version=ct.target.iOS16)
coremltools/test/ml_program/test_utils.py:93
↓ 7 callers
Function
_get_visible_items
(d)
coremltools/test/optimize/torch/test_api_surface.py:11
↓ 7 callers
Function
_quantize_spec_weights
(spec, nbits, quantization_mode, **kwargs)
coremltools/models/neural_network/quantization_utils.py:1142
↓ 7 callers
Function
_upb_array_resize_accessor2
deps/protobuf/php/ext/google/protobuf/php-upb.h:1418
↓ 7 callers
Function
_upb_array_resize_accessor2
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1422
↓ 7 callers
Method
addAll
(Collection<? extends String> c)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:163
↓ 7 callers
Method
addDouble
Like {@link #add(Double)} but more efficient in that it doesn't box the element.
deps/protobuf/java/core/src/main/java/com/google/protobuf/DoubleArrayList.java:194
↓ 7 callers
Method
addFloat
Like {@link #add(Float)} but more efficient in that it doesn't box the element.
deps/protobuf/java/core/src/main/java/com/google/protobuf/FloatArrayList.java:193
↓ 7 callers
Method
addRepeated
(Builder builder, Object value)
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2045
↓ 7 callers
Method
addSymbol
Adds a symbol to the symbol table. If a symbol with the same name already exists, throws an error.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:2574
↓ 7 callers
Method
add_bias
Add a bias layer to the model. Refer to the ``BiasLayerParams`` message in the specification (NeuralNetwork.proto) for more d
coremltools/models/neural_network/builder.py:2189
↓ 7 callers
Method
add_copy
Add a copy layer to the model that copies its input tensor to the output tensor. Input tensor and output tensor must have distinct na
coremltools/models/neural_network/builder.py:6183
↓ 7 callers
Method
add_file
deps/protobuf/src/google/protobuf/compiler/plugin.pb.h:1870
↓ 7 callers
Method
add_metadata
(cls, observed_module: _nn.Module, return_module: _nn.Module)
coremltools/optimize/torch/palettization/_custom_conversion.py:65
↓ 7 callers
Method
add_scale
Add a scale layer to the model. Refer to the ``ScaleLayerParams`` message in the specification (NeuralNetwork.proto) for more
coremltools/models/neural_network/builder.py:2110
↓ 7 callers
Method
add_value
deps/protobuf/src/google/protobuf/descriptor.pb.h:10916
↓ 7 callers
Function
anyFeatureDescriptionOfModel
A utility function to invoke a handler with input, output, and state feature description of the model. It traverses a pipeline model. The function r
mlmodel/src/Utils.cpp:136
↓ 7 callers
Function
ascii_isdigit
deps/protobuf/src/google/protobuf/stubs/strutil.h:74
↓ 7 callers
Function
ascii_islower
deps/protobuf/src/google/protobuf/stubs/strutil.h:87
↓ 7 callers
Method
assertMapValuesSet
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapTest.java:140
↓ 7 callers
Method
byteAt
(int offset)
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormatEscaper.java:40
↓ 7 callers
Function
checkCriticalState
* Ensures the truth of an expression involving the state of the calling * instance, but not involving any parameters to the calling method. * * For
deps/protobuf/js/experimental/runtime/internal/checks.js:104
↓ 7 callers
Function
checkCriticalTypeDouble
* Checks whether a given object is a number. * @param {*} value * @throws {!Error} If the value is not float and the check state is critical.
deps/protobuf/js/experimental/runtime/internal/checks.js:424
↓ 7 callers
Function
checkFieldNumber
* Ensures that field number is an integer and within the range of * [1, MAX_FIELD_NUMBER]. * @param {number} fieldNumber * @throws {!Error} If the
deps/protobuf/js/experimental/runtime/internal/checks.js:233
↓ 7 callers
Method
checkInt64
(&$var)
deps/protobuf/php/src/Google/Protobuf/Internal/GPBUtil.php:137
↓ 7 callers
Function
check_fitted
Check if a model is fitted. Raise error if not. Parameters ---------- model: model Any scikit-learn model func: model
coremltools/converters/sklearn/_sklearn_util.py:7
↓ 7 callers
Function
chkdefaulttype
deps/protobuf/php/ext/google/protobuf/php-upb.c:5237
↓ 7 callers
Function
chkdefaulttype
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:4852
↓ 7 callers
Function
clean_type_id
deps/pybind11/include/pybind11/detail/typeid.h:35
↓ 7 callers
Method
cols
deps/pybind11/tests/test_buffers.cpp:122
↓ 7 callers
Function
compare
returns {-1, 0, 1}
deps/protobuf/src/google/protobuf/stubs/stringpiece.h:259
↓ 7 callers
Method
compress
Compress the supported layers in the module by quantizing each weight value of the layer. Args: inplace (:obj:`bool`): I
coremltools/optimize/torch/quantization/post_training_quantization.py:512
↓ 7 callers
Method
computeBytesSize
Compute the number of bytes that would be needed to encode a {@code bytes} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:628
↓ 7 callers
Method
computeStringSizeNoTag
Compute the number of bytes that would be needed to encode a {@code string} field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:839
↓ 7 callers
Method
construct_debug_handle_to_ops_mapping
For PyMIL program translated from ExecuTorch only: Based on scope info inherited from EXIR, construct a debug handle to ops mapping.
coremltools/converters/mil/mil/program.py:262
↓ 7 callers
Function
convert_graph
Construct Core ML ops corresponding to `graph`. Inputs: - context (TranscriptContext) - graph (dict of str -> ParsedTFNode): op na
coremltools/converters/mil/frontend/tensorflow/convert_utils.py:137
↓ 7 callers
Function
create_and_destroy
(*args)
deps/pybind11/tests/test_factory_constructors.py:342
↓ 7 callers
Function
create_sparse_weight
(weight, target_sparsity)
coremltools/test/optimize/coreml/test_post_training_quantization.py:157
↓ 7 callers
Method
cursor
* Returns the start position of the next data, i.e. end position of the last * read data + 1. * @return {number}
deps/protobuf/js/experimental/runtime/kernel/buffer_decoder.js:109
↓ 7 callers
Method
data
deps/pybind11/include/pybind11/eigen/matrix.h:555
↓ 7 callers
Method
decodeDouble
Decodes and returns a double value.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ArrayDecoders.java:174
↓ 7 callers
Method
decodeFloat
Decodes and returns a float value.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ArrayDecoders.java:179
↓ 7 callers
Method
decodeMessageField
Decodes a message value.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ArrayDecoders.java:234
↓ 7 callers
Method
delete
(ThreadContext context, IRubyObject key)
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMap.java:311
↓ 7 callers
Method
deserialize
* Create a request instance with the given bytes data. * @param {!ArrayBuffer} bytes * @return {!ConformanceRequest}
deps/protobuf/js/experimental/runtime/kernel/conformance/conformance_request.js:31
↓ 7 callers
Function
disconnect_edge
(g, source, dest)
coremltools/converters/mil/frontend/tensorflow/basic_graph_ops.py:101
↓ 7 callers
Function
element
deps/protobuf/src/google/protobuf/util/internal/proto_writer.h:260
↓ 7 callers
Method
enum_value_descriptor
deps/protobuf/src/google/protobuf/descriptor.cc:143
↓ 7 callers
Function
eval
deps/pybind11/include/pybind11/eval.h:48
↓ 7 callers
Function
evaluate_classifier_with_probabilities
Evaluate a classifier specification for testing. Parameters ---------- filename: [str | Model] File to load the model from,
coremltools/models/utils.py:517
↓ 7 callers
Function
factory
NOLINTNEXTLINE(google-explicit-constructor)
deps/pybind11/include/pybind11/detail/init.h:283
↓ 7 callers
Method
failed
After a call has finished, returns true if the call failed. The possible reasons for failure depend on the RPC implementation. {@code failed()} most o
deps/protobuf/java/core/src/main/java/com/google/protobuf/RpcController.java:65
↓ 7 callers
Method
forField
Constructs a new descriptor for a field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldInfo.java:64
↓ 7 callers
Method
forMapField
( Field field, int fieldNumber, Object mapDefaultEntry, EnumVerifier enumVerifier)
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldInfo.java:298
↓ 7 callers
Function
fp32_from_bits
deps/FP16/include/fp16/bitcasts.h:20
↓ 7 callers
Method
fromString
* Constructs a pair from a given string. * @param {string} s * @return {!Pair}
deps/protobuf/js/experimental/runtime/kernel/textencoding_test.js:45
↓ 7 callers
Method
getBoolean
Like {@link #get(int)} but more efficient in that it doesn't box the returned value.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Internal.java:614
↓ 7 callers
Method
getBuilder
(GeneratedMessageV3.Builder builder)
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2052
↓ 7 callers
Method
getDefaultValue
Returns the field's default value. Valid for all types except for messages and groups. For all other types, the object returned is of the same class t
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:1220
↓ 7 callers
Method
getField
Get a field by number. Returns an empty field if not present. Never returns {@code null}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:127
↓ 7 callers
Method
getFieldBuilder
Get a field builder for the given field number which includes any values that already exist.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:329
↓ 7 callers
Method
getFile
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:2311
↓ 7 callers
Method
getHighBits
@return {number} Signed 32-bit integer value.
deps/protobuf/js/experimental/runtime/int64.js:160
↓ 7 callers
Method
getInt32WithDefault
* Returns a int32 for the given field number. * If no default is given zero as the default. * @param {number} fieldNumber * @param {number=}
deps/protobuf/js/experimental/runtime/kernel/kernel.js:639
↓ 7 callers
Method
getInvalidationCount
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:3871
↓ 7 callers
Method
getKey
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/SmallSortedMapTest.java:62
↓ 7 callers
Method
getLowBits
@return {number} Signed 32-bit integer value.
deps/protobuf/js/experimental/runtime/int64.js:155
↓ 7 callers
Method
getMapFieldDefaultEntry
(int pos)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageSchema.java:4864
↓ 7 callers
Method
getOneofDecl
()
deps/protobuf/php/src/Google/Protobuf/Internal/Descriptor.php:61
↓ 7 callers
Method
getPaths
* The set of field mask paths. * * Generated from protobuf field <code>repeated string paths = 1;</code> * @return \Google\Protobuf\Int
deps/protobuf/php/src/Google/Protobuf/FieldMask.php:196
↓ 7 callers
Method
getPublicDescriptor
($desc)
deps/protobuf/php/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php:37
↓ 7 callers
Method
getRepeated
(GeneratedMessageV3 message, int index)
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2039
↓ 7 callers
Method
getRepeatedCount
(GeneratedMessageV3 message)
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2048
↓ 7 callers
Method
getUnfinishedMessage
Returns the unfinished message attached to the exception, or null if no message is attached.
deps/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java:72
↓ 7 callers
Method
get_flattened_inputs
Returns: list[Var]. Flatten all tuple inputs
coremltools/converters/mil/mil/operation.py:239
↓ 7 callers
Function
get_fusion_pattern
Swaps fusion pattern if torch version is >= 2.0.
coremltools/optimize/torch/quantization/_backend_config_utils.py:98
↓ 7 callers
Function
get_mlmodel
()
coremltools/test/optimize/api/test_optimize_api.py:46
↓ 7 callers
Method
hash
(ThreadContext context)
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMap.java:239
↓ 7 callers
Method
ignoringUnknownFields
Creates a new {@link Parser} configured to not throw an exception when an unknown field is encountered. The new Parser clones all other configurations
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java:463
↓ 7 callers
Method
incompleteStateFor
(int byte1)
deps/protobuf/java/core/src/main/java/com/google/protobuf/Utf8.java:179
↓ 7 callers
Method
install
Installs the compile function into distutils.ccompiler.CCompiler.compile.
deps/pybind11/pybind11/setup_helpers.py:488
↓ 7 callers
Method
invalidTag
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java:124
↓ 7 callers
Method
is_tensor_or_scalar_of
(self, dtype: Union[str, type])
coremltools/converters/mil/mil/var.py:322
↓ 7 callers
Function
jsondec_errf
deps/protobuf/php/ext/google/protobuf/php-upb.c:7415
↓ 7 callers
Function
jsondec_errf
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:7030
↓ 7 callers
Function
jsonenc_err
deps/protobuf/php/ext/google/protobuf/php-upb.c:8833
↓ 7 callers
Function
jsonenc_err
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:8448
← previous
next →
1,901–2,000 of 41,379, ranked by callers