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
Method
add_topk
Add a topk layer to the model that returns top or bottom k values and the corresponding indices of the input tensor along a given axi
coremltools/models/neural_network/builder.py:6730
↓ 2 callers
Function
add_upsample_nn
(const_context, builder, op, scale_factor_h, scale_factor_w)
coremltools/converters/mil/backend/nn/op_mapping.py:3065
↓ 2 callers
Method
add_where_nonzero
Add a where_nonzero layer to the model that returns a tensor containing the indices of all non-zero elements of input tensor.
coremltools/models/neural_network/builder.py:8531
↓ 2 callers
Method
add_width_range
(self, width_range)
coremltools/models/neural_network/flexible_shape_utils.py:278
↓ 2 callers
Method
advanceIfCurrentPieceFullyRead
Skips to the next piece if we have read all the data in the current piece. Sets currentPiece to null if we have reached the end of the input.
deps/protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java:950
↓ 2 callers
Method
allocateCopy
mlmodel/src/DataType.cpp:527
↓ 2 callers
Method
allow_alias
deps/protobuf/src/google/protobuf/descriptor.pb.h:13331
↓ 2 callers
Function
annotate_weighted_mod_pattern
Annotates all nodes in ``model``, which match the pattern specified by ``pattern_gm`` using ``quantization_config``. ``pattern_gm`` capt
coremltools/optimize/torch/quantization/_coreml_quantizer_utils.py:403
↓ 2 callers
Function
arrayBufferEqual
* @param {!ArrayBuffer} buffer1 * @param {!ArrayBuffer} buffer2 * @return {boolean}
deps/protobuf/js/experimental/runtime/kernel/typed_arrays.js:13
↓ 2 callers
Method
asByteString
* Returns the buffer as a ByteString. * @return {!ByteString}
deps/protobuf/js/experimental/runtime/kernel/buffer_decoder.js:326
↓ 2 callers
Method
asReadOnlyByteBufferList
Constructs a list of read-only {@code java.nio.ByteBuffer} objects such that the concatenation of their contents is equal to the contents of this byte
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:789
↓ 2 callers
Method
asString
(Object o)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:274
↓ 2 callers
Method
asVerifier
(final Internal.EnumLiteMap<?> map)
deps/protobuf/java/core/src/test/java/com/google/protobuf/Proto2MessageInfoFactory.java:884
↓ 2 callers
Method
as_dict
Convert the TensorStorage to a dictionary. Returns ------- Dict[str, Any] A dictionary representation of
coremltools/models/ml_program/experimental/remote_device.py:1886
↓ 2 callers
Function
as_string_view
deps/protobuf/src/google/protobuf/message_lite.cc:116
↓ 2 callers
Method
assertAccepts
(String name, String value)
deps/protobuf/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java:372
↓ 2 callers
Method
assertAtMostOneFieldSetOneof
(TestOneof2 message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:2560
↓ 2 callers
Method
assertGenericListImmutable
(List<T> list, T value)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java:294
↓ 2 callers
Method
assertImmutable
(IntList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/IntArrayListTest.java:423
↓ 2 callers
Method
assertImmutable
(List<Integer> list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/ProtobufArrayListTest.java:245
↓ 2 callers
Method
assertImmutable
(DoubleList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DoubleArrayListTest.java:425
↓ 2 callers
Method
assertImmutable
(LongList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LongArrayListTest.java:423
↓ 2 callers
Method
assertImmutable
(BooleanList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/BooleanArrayListTest.java:428
↓ 2 callers
Method
assertImmutable
(FloatList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/FloatArrayListTest.java:425
↓ 2 callers
Method
assertIntegerTypes
Verifies setting of scalar integers. Args: integer_fn: A function to wrap the integers that will be assigned. message_module: unittes
deps/protobuf/python/google/protobuf/internal/reflection_test.py:384
↓ 2 callers
Method
assertInvalidUtf8
(int... bytes)
deps/protobuf/java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java:175
↓ 2 callers
Method
assertIsUnmodifiable
(List<?> list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderV3Test.java:173
↓ 2 callers
Method
assertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2LiteTest.java:195
↓ 2 callers
Method
assertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2Test.java:283
↓ 2 callers
Method
assertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapLiteTest.java:198
↓ 2 callers
Method
assertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapTest.java:281
↓ 2 callers
Method
assertMessageEquals
(MessageLite expected, MessageLite actual)
deps/protobuf/java/core/src/test/java/com/google/protobuf/ParserTest.java:100
↓ 2 callers
Method
assertParseBadUtf8
(MessageLite defaultInstance, byte[] data)
deps/protobuf/java/core/src/test/java/com/google/protobuf/CheckUtf8Test.java:145
↓ 2 callers
Method
assertRepeatedExtensionsModified
Assert (using {@code junit.framework.Assert}} that all extensions of {@code message} are set to the values assigned by {@code setAllExtensions} follow
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:1815
↓ 2 callers
Method
assertRepeatedFieldsModified
Assert (using {@code junit.framework.Assert}} that all fields of {@code message} are set to the values assigned by {@code setAllFields} followed by {@
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:862
↓ 2 callers
Method
assertRepeatedFieldsModifiedViaReflection
(MessageOrBuilder message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:3464
↓ 2 callers
Method
assertReuseCodedInputStreamPreserve
(Message message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:76
↓ 2 callers
Method
assertUnknownFieldsExplicitlyDiscarded
(Message message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:113
↓ 2 callers
Method
assertUnknownFieldsInUnknownFieldSetArePreserve
{@link Message.Builder#setUnknownFields(UnknownFieldSet)} and {@link Message.Builder#mergeUnknownFields(UnknownFieldSet)} should preserve the unknown
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:98
↓ 2 callers
Method
assertUnknownFieldsPreserved
(MessageLite message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:105
↓ 2 callers
Method
assertValidUtf8
(ByteStringFactory factory, int[] bytes, boolean not)
deps/protobuf/java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java:148
↓ 2 callers
Function
assert_same_output_shapes
(prog1, prog2, func_name="main")
coremltools/converters/mil/testing_utils.py:265
↓ 2 callers
Function
assert_spec_input_type
(spec, expected_feature_type, expected_name=None, index=0)
coremltools/converters/mil/testing_utils.py:706
↓ 2 callers
Function
assert_spec_output_type
(spec, expected_feature_type, expected_name=None, index=0)
coremltools/converters/mil/testing_utils.py:726
↓ 2 callers
Function
assert_vector_size_same_as_axial_dimension
(param, axis_dim_size, name)
coremltools/converters/mil/mil/ops/defs/iOS17/quantization_ops.py:19
↓ 2 callers
Method
assert_weights_changed
(prog1, prog2)
coremltools/converters/mil/mil/passes/tests/test_passes.py:7262
↓ 2 callers
Method
assetIntegerBoundsChecking
Verifies bounds checking for scalar integer fields. Args: integer_fn: A function to wrap the integers that will be assigned. message_
deps/protobuf/python/google/protobuf/internal/reflection_test.py:433
↓ 2 callers
Method
availableInternal
Computes the number of bytes still available to read.
deps/protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java:967
↓ 2 callers
Method
backward_2d
(X, C, grad_output)
coremltools/optimize/torch/palettization/fake_palettize.py:745
↓ 2 callers
Method
bark
deps/pybind11/tests/test_class.cpp:108
↓ 2 callers
Function
basename
extract the portion of filename before the first . character
mlmodel/tools/enumgen.cpp:13
↓ 2 callers
Method
begin
deps/protobuf/src/google/protobuf/reflection.h:188
↓ 2 callers
Method
benchmark_node_execution
Measures the execution time of individual nodes in the PyTorch model. This method loads the converted model, runs predictions, and r
coremltools/models/ml_program/experimental/torch/perf_utils.py:143
↓ 2 callers
Method
benchmark_operation_execution
Measures the execution time of individual operations in the model. This method loads the model, runs predictions, and retrieves the
coremltools/models/ml_program/experimental/perf_utils.py:399
↓ 2 callers
Method
bind_module
(self, module: _torch.nn.Module)
coremltools/optimize/torch/pruning/_base_pruning_method.py:47
↓ 2 callers
Function
blob_name_to_layers
output_to_layers: {str: layer_proto_message} : {blob name: layers that it feeds into} input_to_parent_layers: {str: layer_proto_messa
coremltools/converters/mil/backend/nn/passes/mlmodel_passes.py:289
↓ 2 callers
Method
blockwise_compress_by_dtype
Similar to `blockwise_compress`, but use `dtype` to specify quant dtype.
coremltools/optimize/coreml/_quantization_passes.py:1309
↓ 2 callers
Method
bool_value
deps/protobuf/src/google/protobuf/struct.pb.h:945
↓ 2 callers
Function
broadcast
deps/pybind11/include/pybind11/numpy.h:1791
↓ 2 callers
Method
bufferAddressField
Finds the address field within a direct {@link Buffer}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:370
↓ 2 callers
Method
bufferInt32NoTag
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:2285
↓ 2 callers
Method
bufferPos
(long pos)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2009
↓ 2 callers
Function
build
(x, update, begin, end)
coremltools/converters/mil/mil/ops/tests/iOS18/test_tensor_transformation.py:73
↓ 2 callers
Method
build
Build the {@link UnknownFieldSet} and return it. <p>Once {@code build()} has been called, the {@code Builder} will no longer be usable. Calling any m
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:357
↓ 2 callers
Method
build
Builds the message and returns it. @return the message
deps/protobuf/java/core/src/main/java/com/google/protobuf/SingleFieldBuilderV3.java:111
↓ 2 callers
Method
buildFieldMap
($desc)
deps/protobuf/php/tests/DescriptorsTest.php:246
↓ 2 callers
Method
buildFrom
(ThreadContext context, DynamicMessage dynamicMessage)
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMessage.java:768
↓ 2 callers
Function
buildIndex
* Creates an index of field locations in a given binary protobuf. * @param {!BufferDecoder} bufferDecoder * @param {number|undefined} pivot * @retu
deps/protobuf/js/experimental/runtime/kernel/indexer.js:37
↓ 2 callers
Method
buildOneofMember
Builds info for a oneof member field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java:445
↓ 2 callers
Method
buildPartial
()
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/SentinelOuterClass.java:408
↓ 2 callers
Method
buildPartial
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java:391
↓ 2 callers
Method
builder
Create a builder for a {@code ParseInfoTree}. @return the builder
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormatParseInfoTree.java:146
↓ 2 callers
Function
byte_offset_unsafe
deps/pybind11/include/pybind11/numpy.h:489
↓ 2 callers
Method
bytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:975
↓ 2 callers
Method
bytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:1512
↓ 2 callers
Method
bytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:2031
↓ 2 callers
Method
bytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:2584
↓ 2 callers
Method
cachedSizeField
(Class<?> messageType, FieldDescriptor fd)
deps/protobuf/java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java:579
↓ 2 callers
Method
can_be_output
(self)
coremltools/converters/mil/input_types.py:81
↓ 2 callers
Method
can_be_replaced_by_var
A var can be replaced by a new var only if the new var's nonreplaceable_vars_upstream is the super set of the old one
coremltools/converters/mil/mil/var.py:208
↓ 2 callers
Function
cast_error_unable_to_convert_call_arg
deps/pybind11/include/pybind11/cast.h:1369
↓ 2 callers
Function
cast_to_framework_io_dtype
(var, is_output)
coremltools/converters/mil/backend/mil/helper.py:304
↓ 2 callers
Function
ceil
(context, node)
coremltools/converters/mil/frontend/torch/ops.py:7075
↓ 2 callers
Function
check
deps/pybind11/include/pybind11/pytypes.h:303
↓ 2 callers
Method
checkArguments
(ExtensionRegistryLite extensionRegistry, ByteString bytes)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyFieldLite.java:433
↓ 2 callers
Method
checkByteStringIsUtf8
(ByteString byteString)
deps/protobuf/java/core/src/main/java/com/google/protobuf/AbstractMessageLite.java:132
↓ 2 callers
Function
checkCriticalTypeByteStringArray
* Checks whether a given object is an array of ByteString. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:396
↓ 2 callers
Function
checkCriticalTypeStringArray
* Checks whether a given object is an array of string. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:590
↓ 2 callers
Method
checkFieldDescriptor
(FieldDescriptor field)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapEntry.java:198
↓ 2 callers
Method
checkIndex
Checks that the given index falls within the specified array size. @param index the index position to be tested @param size the length of the array @
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:1261
↓ 2 callers
Function
checkIsInternalMessage
* Checks if the object implements InternalMessage interface. * @param {?} obj * @return {!InternalMessage}
deps/protobuf/js/experimental/runtime/kernel/kernel.js:49
↓ 2 callers
Function
checkMapEquals
* Helper: check that the given map has exactly this set of (sorted) entries. * @param {!jspb.Map} map * @param {!Array<!Array<?>>} entries
deps/protobuf/js/maps_test.js:63
↓ 2 callers
Function
checkMapEquals
* Helper: check that the given map has exactly this set of (sorted) entries. * @param {!jspb.Map} map * @param {!Array<!Array<?>>} entries
deps/protobuf/js/compatibility_tests/v3.1.0/maps_test.js:50
↓ 2 callers
Method
checkMessageInitialized
Helper method to check if message is initialized. @throws InvalidProtocolBufferException if it is not initialized. @return The message to check.
deps/protobuf/java/core/src/main/java/com/google/protobuf/AbstractParser.java:64
↓ 2 callers
Function
check_connections
Given a graph, checks that all - inputs/outputs are symmetric - control_inputs/control_outputs are symmetric - The graph does not
coremltools/converters/mil/frontend/tensorflow/basic_graph_ops.py:209
↓ 2 callers
Function
check_kw_only_arg
deps/pybind11/include/pybind11/attr.h:461
↓ 2 callers
Method
check_spec_op_type
(model_path, expected_ops)
coremltools/test/ml_program/test_utils.py:1506
↓ 2 callers
Method
check_update_prog
(prog, output_name)
coremltools/converters/mil/frontend/milproto/test_load.py:334
↓ 2 callers
Method
cleanup
(self)
coremltools/models/ml_program/experimental/async_wrapper.py:150
↓ 2 callers
Method
clearExtension
Clear an extension.
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java:1338
← previous
next →
6,001–6,100 of 41,379, ranked by callers