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
↓ 5 callers
Function
_upb_map_fromvalue
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1556
↓ 5 callers
Function
_var
( x: Var, axes: Tuple[int] = None, keep_dims: bool = False, unbiased: bool = None, correct
coremltools/converters/mil/frontend/torch/ops.py:7479
↓ 5 callers
Function
_verify_quantization_arguments
(weight=bytes(), output_channels=1, **kwargs)
coremltools/models/neural_network/builder.py:56
↓ 5 callers
Method
addFieldPath
Adds a field path to the tree. In a FieldMask, every field path matches the specified field as well as all its sub-fields. For example, a field path "
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskTree.java:100
↓ 5 callers
Method
addFixed32
Add a fixed32 value.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:1017
↓ 5 callers
Method
addInput
mlmodel/src/Model.cpp:246
↓ 5 callers
Method
addMessage
Appends the specified element to the end of this list. @param message the message to add @return the builder
deps/protobuf/java/core/src/main/java/com/google/protobuf/RepeatedFieldBuilder.java:300
↓ 5 callers
Method
add_add_broadcastable
Add an add_broadcastable layer to the model that performs element-wise addition operation with broadcast support. Refer to th
coremltools/models/neural_network/builder.py:5405
↓ 5 callers
Method
add_annotation
deps/protobuf/src/google/protobuf/descriptor.pb.h:14657
↓ 5 callers
Method
add_fill_dynamic
Add a fill_dynamic layer to the model that outputs a tensor filled with a scalar value. Refer to the ``FillDynamicLayerParams
coremltools/models/neural_network/builder.py:7330
↓ 5 callers
Method
add_gather
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:6496
↓ 5 callers
Method
add_get_shape
Add a get_shape layer to the model. Refer to the ``GetShapeLayerParams`` message in the specification (NeuralNetwork.proto) f
coremltools/models/neural_network/builder.py:7208
↓ 5 callers
Method
add_greater_than
Add a greater_than layer to the model that performs the element-wise greater-than (>) operation or greater-than-or-equal-to (>=) oper
coremltools/models/neural_network/builder.py:6211
↓ 5 callers
Method
add_not_equal
Add a not_equal layer to the model that performs the element-wise not equal (!=) operation. Broadcasting is supported. Refer
coremltools/models/neural_network/builder.py:6324
↓ 5 callers
Method
add_slice_static
Add a slice_static layer to the model that extracts a slice of size ``(end - begin) / stride`` from the given input tensor. R
coremltools/models/neural_network/builder.py:5785
↓ 5 callers
Method
add_softmax
Add a softmax layer to the model. Refer to the ``SoftmaxLayerParams`` message in the specification (NeuralNetwork.proto) for
coremltools/models/neural_network/builder.py:1703
↓ 5 callers
Method
add_split_nd
Add a split layer to the model that splits the input tensor into multiple output tensors. Either uniformly split the input tensor int
coremltools/models/neural_network/builder.py:5744
↓ 5 callers
Method
add_unary
Add a Unary layer. Applies the specified function (mode) to all the elements of the input. Prior to the application of the function t
coremltools/models/neural_network/builder.py:4336
↓ 5 callers
Function
append
(context, node)
coremltools/converters/mil/frontend/torch/ops.py:6787
↓ 5 callers
Method
append
Appends an item to the list. Similar to list.append().
deps/protobuf/python/google/protobuf/internal/containers.py:117
↓ 5 callers
Method
append_pass
Append a pass at the end of the current passes in the pipeline.
coremltools/converters/mil/mil/passes/pass_pipeline.py:330
↓ 5 callers
Method
apply
(self, prog)
coremltools/optimize/coreml/_quantization_passes.py:86
↓ 5 callers
Function
broadcast_shapes
Check and broadcast given input shapes. :param shape_x: tuple of int or symbols Shape of the first tensor (possibly symbolic). :p
coremltools/converters/mil/mil/ops/defs/_utils.py:54
↓ 5 callers
Method
bufferPos
(long pos)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:2228
↓ 5 callers
Method
bufferUInt64NoTag
This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:2331
↓ 5 callers
Method
byteAt
Gets the byte at the given index. This method should be used only for random access to individual bytes. To access bytes sequentially, use the {@link
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:157
↓ 5 callers
Method
byteSize
* @ignore */
deps/protobuf/php/src/Google/Protobuf/Internal/Message.php:1923
↓ 5 callers
Method
can_materialize_val
(self)
coremltools/converters/mil/mil/ops/defs/iOS17/quantization_ops.py:225
↓ 5 callers
Function
cbegin
! @brief returns a const iterator to the first element Returns a const iterator to the first element. @image html range-begin-end.svg "I
deps/nlohmann/json.hpp:21395
↓ 5 callers
Function
cend
! @brief returns a const iterator to one past the last element Returns a const iterator to one past the last element. @image html range-
deps/nlohmann/json.hpp:21466
↓ 5 callers
Method
checkDouble
(&$var)
deps/protobuf/php/src/Google/Protobuf/Internal/GPBUtil.php:177
↓ 5 callers
Method
checkFieldDescriptor
(FieldDescriptor field)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapEntry.java:313
↓ 5 callers
Method
checkType
(ThreadContext context, FieldDescriptor.Type fieldType, String fieldNa
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/Utils.java:67
↓ 5 callers
Method
checkUint64
(&$var)
deps/protobuf/php/src/Google/Protobuf/Internal/GPBUtil.php:155
↓ 5 callers
Function
clean_up_backends
Given a list of BackendConfig objects, this utility function filters out the invalid elements. For instance, given a list of configs with op
coremltools/converters/mil/testing_reqs.py:113
↓ 5 callers
Method
clear_cached_models
Clears the cache of generated models.
coremltools/models/ml_program/experimental/debugging_utils.py:432
↓ 5 callers
Method
cloneAllFieldsMap
( SmallSortedMap<T, Object> fields, boolean copyList)
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:202
↓ 5 callers
Method
closeAndStartNewBuffer_
* Appends the current buffer into the blocks array and starts a new buffer. * @private
deps/protobuf/js/experimental/runtime/kernel/writer.js:104
↓ 5 callers
Method
compareFields
Compares two set of fields. This method is used to implement {@link AbstractMessage#equals(Object)} and {@link AbstractMutableMessage#equals(Object)}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/AbstractMessage.java:233
↓ 5 callers
Function
compare_backend
Inputs: - mlmodel: MLModel. - input_key_values: str -> np.array. Keys must match those in input_placeholders.
coremltools/converters/mil/testing_utils.py:403
↓ 5 callers
Method
computeFixed32Size
Compute the number of bytes that would be needed to encode a {@code fixed32} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:532
↓ 5 callers
Method
computeFixed64Size
Compute the number of bytes that would be needed to encode a {@code fixed64} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:572
↓ 5 callers
Method
computeFullName
( final FileDescriptor file, final Descriptor parent, final String name)
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:2280
↓ 5 callers
Method
computeInt32SizeNoTag
Compute the number of bytes that would be needed to encode an {@code int32} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:717
↓ 5 callers
Method
computeStringSize
Compute the number of bytes that would be needed to encode a {@code string} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:620
↓ 5 callers
Method
computeUInt32Size
Compute the number of bytes that would be needed to encode a {@code uint32} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:516
↓ 5 callers
Method
cond
(a, b)
coremltools/converters/mil/mil/passes/tests/test_cleanup_passes.py:1204
↓ 5 callers
Method
cond
(i, num_iters, array, update)
coremltools/converters/mil/frontend/tensorflow/test/test_ops.py:7095
↓ 5 callers
Method
consumeIdentifier
If the next token is an identifier, consume it and return its value. Otherwise, throw a {@link ParseException}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:1049
↓ 5 callers
Method
copyOnWrite
Called before any method that would mutate the builder to ensure that it correctly copies any state before the write happens to preserve immutability
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java:358
↓ 5 callers
Function
curr_block
()
coremltools/converters/mil/mil/block.py:28
↓ 5 callers
Method
data
deps/protobuf/src/google/protobuf/descriptor.cc:961
↓ 5 callers
Method
default_value
deps/protobuf/src/google/protobuf/extension_set.h:1498
↓ 5 callers
Function
effective_kernel
Args: kernel_shape: tuple[int] representing the kernel shape in each given dimension. dilations: tuple[int] represen
coremltools/converters/mil/mil/ops/defs/_utils.py:140
↓ 5 callers
Method
empty?
deps/protobuf/ruby/lib/google/protobuf/repeated_field.rb:102
↓ 5 callers
Method
emptyList
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/ProtobufArrayList.java:47
↓ 5 callers
Method
encodeUtf8
Encodes the given characters to the target {@link ByteBuffer} using UTF-8 encoding. <p>Selects an optimal algorithm based on the type of {@link ByteB
deps/protobuf/java/core/src/main/java/com/google/protobuf/Utf8.java:353
↓ 5 callers
Function
encode_varint
deps/protobuf/php/ext/google/protobuf/php-upb.c:1107
↓ 5 callers
Function
encode_varint
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:1107
↓ 5 callers
Method
endsWith
Tests if this bytestring ends with the specified suffix. Similar to {@link String#endsWith(String)} @param suffix the suffix. @return <code>true</cod
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:345
↓ 5 callers
Method
ensureExtensionsAreMutable
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java:790
↓ 5 callers
Method
ensureIsMutable
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java:654
↓ 5 callers
Method
ensureMutable
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapFieldLite.java:230
↓ 5 callers
Method
equal_range
deps/protobuf/src/google/protobuf/map.h:1259
↓ 5 callers
Function
exec
deps/pybind11/include/pybind11/eval.h:88
↓ 5 callers
Method
existField
* @ignore */
deps/protobuf/php/src/Google/Protobuf/Internal/Message.php:1581
↓ 5 callers
Method
extendee
deps/protobuf/src/google/protobuf/descriptor_database.cc:527
↓ 5 callers
Method
f
(String name)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapTest.java:764
↓ 5 callers
Function
fastdecode_loadtag
deps/protobuf/php/ext/google/protobuf/php-upb.h:1888
↓ 5 callers
Function
fastdecode_loadtag
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1892
↓ 5 callers
Function
fetch_func_params
Given a model, weight node and bias node, this function fetches the attributes corresponding to these nodes and returns them as a 2-tuple (we
coremltools/optimize/torch/_utils/transforms.py:114
↓ 5 callers
Method
field
(Class<?> messageType, FieldDescriptor fd)
deps/protobuf/java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java:575
↓ 5 callers
Function
fill
(context, node)
coremltools/converters/mil/frontend/torch/ops.py:5539
↓ 5 callers
Method
find_first_not_of
deps/protobuf/src/google/protobuf/stubs/stringpiece.cc:166
↓ 5 callers
Method
find_params
Compute quantization parameters.
coremltools/optimize/torch/layerwise_compression/_quant.py:94
↓ 5 callers
Method
flags
deps/pybind11/include/pybind11/numpy.h:753
↓ 5 callers
Function
fopen
deps/protobuf/src/google/protobuf/io/io_win32.cc:321
↓ 5 callers
Method
forMapMetadata
Returns the metadata from a default entry.
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapFieldSchema.java:56
↓ 5 callers
Method
fromBufferDecoder_
* Create a Kernel for the given binary bytes. * The bytes array is kept by the Kernel. DON'T MODIFY IT. * @param {!BufferDecoder} bufferDecoder
deps/protobuf/js/experimental/runtime/kernel/kernel.js:385
↓ 5 callers
Method
from_dict
(dict: _Dict[str, _Any])
coremltools/models/ml_program/experimental/remote_device.py:2216
↓ 5 callers
Function
from_json
deps/nlohmann/json.hpp:3712
↓ 5 callers
Method
from_yaml
Construct an ``OptimizationConfig`` instance from a YAML file. The YAML file should have the structure that only contains (if any) th
coremltools/optimize/coreml/_config.py:1131
↓ 5 callers
Method
getAllFieldsMutable
Internal helper to return a modifiable map containing all the fields. The returned Map is modifialbe so that the caller can add additional extension f
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java:118
↓ 5 callers
Method
getAllFieldsMutable
Internal helper to return a modifiable map containing all the fields. The returned Map is modifiable so that the caller can add additional extension f
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:158
↓ 5 callers
Method
getAllLiteSetBuilder
Get a {@code TestAllTypesLite.Builder} with all fields set as they would be by {@link #setAllFields(TestAllTypesLite.Builder)}.
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtilLite.java:153
↓ 5 callers
Method
getBoolWithDefault
* Returns data as boolean for the given field number. * If no default is given, use false as the default. * @param {number} fieldNumber * @pa
deps/protobuf/js/experimental/runtime/kernel/kernel.js:553
↓ 5 callers
Method
getBoolean
(Object target, long offset)
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:143
↓ 5 callers
Method
getByteString
(int index)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:234
↓ 5 callers
Method
getBytesWithDefault
* Returns data as a ByteString for the given field number. * If no default is given, use false as the default. * @param {number} fieldNumber
deps/protobuf/js/experimental/runtime/kernel/kernel.js:567
↓ 5 callers
Method
getContainingType
Get the field's containing type. For extensions, this is the type being extended, not the location where the extension was defined. See {@link #getExt
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:1242
↓ 5 callers
Method
getCount
Gets the count of items in the list. @return the count of items in the list.
deps/protobuf/java/core/src/main/java/com/google/protobuf/RepeatedFieldBuilder.java:171
↓ 5 callers
Method
getDescriptorByClassName
($klass)
deps/protobuf/php/src/Google/Protobuf/Internal/DescriptorPool.php:115
↓ 5 callers
Method
getDescriptorForType
Returns the descriptor for the target.
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageReflection.java:218
↓ 5 callers
Method
getDouble
(Object target, long offset)
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:159
↓ 5 callers
Method
getEmptyTypeRegistry
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/TypeRegistry.java:54
↓ 5 callers
Method
getEmptyTypeRegistry
()
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java:513
↓ 5 callers
Method
getEnumFieldVerifier
(int pos)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageSchema.java:4868
↓ 5 callers
Method
getField
(String name)
deps/protobuf/java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java:64
↓ 5 callers
Method
getField
Useful for implementing {@link Message#getField(Descriptors.FieldDescriptor)}. This method returns {@code null} if the field is not set; in this case
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:264
↓ 5 callers
Method
getFloat
(Object target, long offset)
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:151
← previous
next →
2,601–2,700 of 41,379, ranked by callers