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
↓ 3 callers
Method
add_reserved_range
deps/protobuf/src/google/protobuf/descriptor.pb.h:9880
↓ 3 callers
Method
add_service
deps/protobuf/src/google/protobuf/descriptor.pb.h:8938
↓ 3 callers
Method
add_sin
Add a sin layer to the model that computes element-wise sine for the input tensor. Refer to the ``SinLayerParams`` message in
coremltools/models/neural_network/builder.py:5099
↓ 3 callers
Method
add_slice_dynamic
Add a slice_dynamic layer to the model that extracts a slice of size ``(end - begin) / stride`` from the given input tensor.
coremltools/models/neural_network/builder.py:5856
↓ 3 callers
Method
add_softmax_nd
Add a softmax_nd layer to the model that performs softmax operation along the given axis. Refer to the ``SoftmaxNDLayerParams
coremltools/models/neural_network/builder.py:4990
↓ 3 callers
Method
add_stack
Add a stack layer to the model that performs stack operation on a list of tensors into one rank+1 tensor on the given axis. R
coremltools/models/neural_network/builder.py:5598
↓ 3 callers
Method
add_subtract_broadcastable
Add a subtract_broadcastable layer to the model that performs element-wise subtraction operation with broadcast support. Refe
coremltools/models/neural_network/builder.py:5468
↓ 3 callers
Method
add_tile
Add a tile layer to the model that construct a tensor by repeating the input tensor multiple number of times. Refer to the ``
coremltools/models/neural_network/builder.py:5926
↓ 3 callers
Method
advance
($amount)
deps/protobuf/php/src/Google/Protobuf/Internal/CodedInputStream.php:71
↓ 3 callers
Function
affine_quantize_weights
``coremltools.compression_utils.affine_quantize_weights`` is deprecated and will be removed in the future. Please use :py:class:`coremltools.
coremltools/models/ml_program/compression_utils.py:36
↓ 3 callers
Method
annotation_size
deps/protobuf/src/google/protobuf/descriptor.pb.h:14632
↓ 3 callers
Method
appendHelper
($field, $append_value)
deps/protobuf/php/src/Google/Protobuf/Internal/Message.php:1935
↓ 3 callers
Method
appendHelper
($obj, $func_suffix, $value)
deps/protobuf/php/tests/test_util.php:514
↓ 3 callers
Function
append_self_arg_if_needed
deps/pybind11/include/pybind11/attr.h:468
↓ 3 callers
Method
apply
(self, prog)
coremltools/converters/mil/mil/passes/defs/randomize.py:22
↓ 3 callers
Function
arena_findroot
deps/protobuf/php/ext/google/protobuf/php-upb.c:2763
↓ 3 callers
Function
arena_findroot
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:2763
↓ 3 callers
Function
arr
()
deps/pybind11/tests/test_numpy_array.py:28
↓ 3 callers
Method
arrayPos
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:1477
↓ 3 callers
Method
asByteArray
(Object o)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:294
↓ 3 callers
Method
asByteString
(Object o)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:284
↓ 3 callers
Method
asByteStringList
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:405
↓ 3 callers
Method
asInvalidProtocolBufferException
Converts this exception to an {@link InvalidProtocolBufferException}. When a parsed message is missing required fields, this should be thrown instead
deps/protobuf/java/core/src/main/java/com/google/protobuf/UninitializedMessageException.java:78
↓ 3 callers
Method
asString
* Returns the buffer as a string. * @return {string}
deps/protobuf/js/experimental/runtime/kernel/buffer_decoder.js:314
↓ 3 callers
Function
ascii_isalnum
deps/protobuf/src/google/protobuf/stubs/strutil.h:68
↓ 3 callers
Method
assertClear
Assert (using {@code junit.framework.Assert}} that all fields of {@code message} are cleared, and that getting the fields returns their default values
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:703
↓ 3 callers
Method
assertEqualsAndHashCodeAreFalse
(Object o1, Object o2)
deps/protobuf/java/lite/src/test/java/com/google/protobuf/LiteTest.java:2400
↓ 3 callers
Method
assertIsUnmodifiable
(List<?> list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/GeneratedMessageTest.java:373
↓ 3 callers
Method
assertListsEqual
(self, values, others)
deps/protobuf/python/google/protobuf/internal/reflection_test.py:934
↓ 3 callers
Method
assertMapCounts
(int expectedCount, TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2LiteTest.java:617
↓ 3 callers
Method
assertMapCounts
(int expectedCount, TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2Test.java:993
↓ 3 callers
Method
assertMapCounts
(int expectedCount, TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapLiteTest.java:661
↓ 3 callers
Method
assertMapCounts
(int expectedCount, TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapTest.java:1149
↓ 3 callers
Method
assertMapIterEquals
(self, map_iter, dict_value)
deps/protobuf/python/google/protobuf/internal/message_test.py:1530
↓ 3 callers
Method
assertMapValuesUpdated
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2LiteTest.java:163
↓ 3 callers
Method
assertMapValuesUpdated
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2Test.java:251
↓ 3 callers
Method
assertMapValuesUpdated
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapLiteTest.java:166
↓ 3 callers
Method
assertMapValuesUpdated
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapTest.java:249
↓ 3 callers
Method
assertOneofSet
(TestOneof2 message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:2546
↓ 3 callers
Method
assertPackedExtensionsSet
(TestPackedExtensions message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:1945
↓ 3 callers
Method
assertParseErrorWithOverwriteForbidden
(String error, String text)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TextFormatTest.java:813
↓ 3 callers
Method
assertParseSuccessWithOverwriteForbidden
(String text)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TextFormatTest.java:823
↓ 3 callers
Method
assertReflectionRepeatedSettersRejectNull
Verifies that the reflection repeated setters for the given Builder object throw a NullPointerException if they are passed a null value. Uses Assert t
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:3722
↓ 3 callers
Method
assertRejects
(String name, String value)
deps/protobuf/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java:354
↓ 3 callers
Method
assertRoundTripEquals
(MessageLite message, ExtensionRegistryLite registry)
deps/protobuf/java/core/src/test/java/com/google/protobuf/ParserLiteTest.java:48
↓ 3 callers
Method
assertRoundTrips
(String str)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java:299
↓ 3 callers
Method
assertTestMessage
(TestMessage $m)
deps/protobuf/php/tests/test_util.php:213
↓ 3 callers
Function
assert_equal_ref
(mat)
deps/pybind11/tests/test_eigen_matrix.py:22
↓ 3 callers
Method
atEnd
Are we at the end of the input?
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:960
↓ 3 callers
Function
begin
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:2110
↓ 3 callers
Method
benchmark_predict
Measures the prediction time of the model. This method loads the model, then runs predictions multiple times, measuring the
coremltools/models/ml_program/experimental/perf_utils.py:342
↓ 3 callers
Method
booleanAt
(T message, long offset)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageSchema.java:5765
↓ 3 callers
Function
bswap_16
deps/protobuf/src/google/protobuf/stubs/port.h:254
↓ 3 callers
Method
build
(ThreadContext context)
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMessage.java:638
↓ 3 callers
Method
buildPartial
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java:406
↓ 3 callers
Method
bytes
Helper to construct a byte array from a bunch of bytes. The inputs are actually ints so that I can use hex notation and not get stupid errors about pr
deps/protobuf/java/core/src/test/java/com/google/protobuf/CodedOutputStreamTest.java:744
↓ 3 callers
Function
c_strides
deps/pybind11/include/pybind11/buffer_info.h:19
↓ 3 callers
Method
calculateHashCodeForMap
Calculates the hash code for a {@link Map}. We don't use the default hash code method of {@link Map} because for byte arrays and protobuf enums it use
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapFieldLite.java:176
↓ 3 callers
Function
call_setters
(lfq, ch_axis, shape)
coremltools/test/optimize/torch/quantization/test_learnable_fake_quantize.py:28
↓ 3 callers
Function
cant_convert
(v)
deps/pybind11/tests/test_builtin_casters.py:292
↓ 3 callers
Method
cbegin
mlmodel/src/MILBlob/Util/Span.hpp:362
↓ 3 callers
Method
cc_generic_services
deps/protobuf/src/google/protobuf/descriptor.pb.h:12222
↓ 3 callers
Method
cend
mlmodel/src/MILBlob/Util/Span.hpp:367
↓ 3 callers
Function
check
deps/protobuf/php/ext/google/protobuf/php-upb.c:2423
↓ 3 callers
Function
check
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:2423
↓ 3 callers
Method
checkArrayElementType
(ThreadContext context, RubyArray arr)
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyRepeatedField.java:404
↓ 3 callers
Function
checkCriticalPositionIndex
* Ensures that `index` specifies a valid position in an indexable object of * size `size`. A position index may range from zero to size, inclusive.
deps/protobuf/js/experimental/runtime/internal/checks.js:150
↓ 3 callers
Function
checkCriticalTypeBool
* Checks whether a given object is a boolean. * @param {*} value
deps/protobuf/js/experimental/runtime/internal/checks.js:363
↓ 3 callers
Function
checkCriticalTypeBoolArray
* Checks whether a given object is an array of boolean. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:372
↓ 3 callers
Function
checkCriticalTypeByteString
* Checks whether a given object is a ByteString. * @param {*} value
deps/protobuf/js/experimental/runtime/internal/checks.js:387
↓ 3 callers
Function
checkCriticalTypeDoubleArray
* Checks whether a given object is an array of double. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:433
↓ 3 callers
Function
checkCriticalTypeFloatIterable
* Checks whether a given object is an iterable of floats. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:566
↓ 3 callers
Function
checkCriticalTypeString
* Checks whether a given object is a string. * @param {*} value
deps/protobuf/js/experimental/runtime/internal/checks.js:581
↓ 3 callers
Function
checkElementIndex
* Ensures that `index` specifies a valid element in an indexable object of * size `size`. A element index may range from zero to size, exclusive. *
deps/protobuf/js/experimental/runtime/internal/checks.js:167
↓ 3 callers
Method
checkFloat
(&$var)
deps/protobuf/php/src/Google/Protobuf/Internal/GPBUtil.php:168
↓ 3 callers
Function
checkFunctionExists
* Ensures that the value exists and is a function. * * @param {function(?): ?} func
deps/protobuf/js/experimental/runtime/internal/checks.js:271
↓ 3 callers
Method
checkKey
* @ignore */
deps/protobuf/php/src/Google/Protobuf/Internal/MapField.php:256
↓ 3 callers
Method
checkLastTagWas
(final int value)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:638
↓ 3 callers
Method
checkLastTagWas
(final int value)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:1353
↓ 3 callers
Method
checkLastTagWas
(final int value)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2121
↓ 3 callers
Method
checkLastTagWas
(final int value)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:3242
↓ 3 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/GeneratedMessageLite.java:1600
↓ 3 callers
Method
checkNoSpaceLeft
Verifies that {@link #spaceLeft()} returns zero. It's common to create a byte array that is exactly big enough to hold a message, then write to it wit
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:937
↓ 3 callers
Method
checkSizeLimitExceeded
(InvalidProtocolBufferException e)
deps/protobuf/java/core/src/test/java/com/google/protobuf/CodedInputStreamTest.java:687
↓ 3 callers
Function
checkTypeSignedInt32
* Checks whether a given object is a number. * @param {*} value * @throws {!Error} If the value is not signed int32 and the check state is * de
deps/protobuf/js/experimental/runtime/internal/checks.js:450
↓ 3 callers
Function
checkTypeSignedInt64
* Ensures that value is a long instance. * @param {*} value * @throws {!Error} If the value is not a long instance and check state is * debug.
deps/protobuf/js/experimental/runtime/internal/checks.js:495
↓ 3 callers
Function
checkTypeUnsignedInt32
* Ensures that value is a valid unsigned int32. * @param {*} value * @throws {!Error} If the value is out of range and the check state is debug.
deps/protobuf/js/experimental/runtime/internal/checks.js:606
↓ 3 callers
Function
check_
deps/pybind11/include/pybind11/numpy.h:1281
↓ 3 callers
Function
check_flags
deps/pybind11/include/pybind11/numpy.h:409
↓ 3 callers
Method
check_functions_description
( mlmodel: ct.models.MLModel, expect_function_names: List[str], expected_default_funct
coremltools/converters/mil/backend/mil/test_load.py:506
↓ 3 callers
Method
clear_default_value
string default_value = 11;
deps/protobuf/src/google/protobuf/type.pb.h:1995
↓ 3 callers
Function
cluster
:param array: A sequence of floats :param k: Number of clusters (int) :param weights: Sequence of weights (if provided, must have same le
deps/kmeans1d/kmeans1d/core.py:37
↓ 3 callers
Method
compareTo
(FieldInfo o)
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldInfo.java:382
↓ 3 callers
Method
compress_by_nm_sparsity
( val, n_m_ratio, dim )
coremltools/optimize/coreml/_quantization_passes.py:385
↓ 3 callers
Method
computeBoolSize
Compute the number of bytes that would be needed to encode a {@code bool} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:603
↓ 3 callers
Method
computeBoolSizeNoTag
Compute the number of bytes that would be needed to encode a {@code bool} field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:826
↓ 3 callers
Method
computeDoubleSizeNoTag
Compute the number of bytes that would be needed to encode a {@code double} field, including tag.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:821
↓ 3 callers
Method
computeElementSizeNoTag
Compute the number of bytes that would be needed to encode a particular value of arbitrary type, excluding tag. @param type The field's type. @param
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:833
↓ 3 callers
Method
computeFieldSize
Compute the number of bytes needed to encode a particular field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:895
↓ 3 callers
Method
computeFixed32SizeNoTag
Compute the number of bytes that would be needed to encode a {@code fixed32} field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:749
← previous
next →
4,201–4,300 of 41,379, ranked by callers