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
↓ 6 callers
Method
_sklearn_setup
(self, model, dtype, data, target)
coremltools/test/sklearn_tests/test_io_types.py:72
↓ 6 callers
Method
_test_compile_model_path
(self, compiled_model_path, compute_units=ComputeUnit.ALL)
coremltools/test/neural_network/test_compiled_model.py:46
↓ 6 callers
Method
_test_mlmodel_correctness
:param mlmodel: coremltools.models.MLModel Test the following: - calling .predict on mlmodel works correctly - callin
coremltools/test/modelpackage/test_modelpackage.py:603
↓ 6 callers
Method
_train_convert_evaluate_assert
Train a scikit-learn model, convert it and then evaluate it with CoreML
coremltools/test/xgboost_tests/test_boosted_trees_classifier_numeric.py:58
↓ 6 callers
Function
_upb_array_mutable_accessor
deps/protobuf/php/ext/google/protobuf/php-upb.h:1406
↓ 6 callers
Function
_upb_array_mutable_accessor
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1410
↓ 6 callers
Function
_upb_mapsorter_getkeys
deps/protobuf/php/ext/google/protobuf/php-upb.c:1676
↓ 6 callers
Function
_upb_mapsorter_getkeys
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:1676
↓ 6 callers
Function
_upb_value_setval
deps/protobuf/php/ext/google/protobuf/php-upb.h:787
↓ 6 callers
Function
_upb_value_setval
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:787
↓ 6 callers
Function
_verify_quant_range
(fake_quant, weight_n_bits, weight_dtype)
coremltools/test/optimize/torch/quantization/test_configure.py:80
↓ 6 callers
Function
abs
Not a good abs function, but easy to test.
deps/pybind11/tests/test_operator_overloading.cpp:133
↓ 6 callers
Method
addBoolean
Like {@link #add(Boolean)} but more efficient in that it doesn't box the element.
deps/protobuf/java/core/src/main/java/com/google/protobuf/BooleanArrayList.java:194
↓ 6 callers
Function
addInnerProductLayer
mlmodel/tests/ModelCreationUtils.cpp:103
↓ 6 callers
Method
addValue
($number, $value)
deps/protobuf/php/src/Google/Protobuf/Internal/EnumDescriptor.php:33
↓ 6 callers
Method
add_branch
Add a branch layer to the model that provides the functionality of branching or an ``if-else`` block. Refer to the ``BranchLa
coremltools/models/neural_network/builder.py:6051
↓ 6 callers
Function
add_deps
(curr_op: proto.MIL_pb2.Operation)
coremltools/models/ml_program/experimental/debugging_utils.py:710
↓ 6 callers
Method
add_enum_type
deps/protobuf/src/google/protobuf/descriptor.pb.h:8898
↓ 6 callers
Method
add_extension
deps/protobuf/src/google/protobuf/descriptor.pb.h:8978
↓ 6 callers
Method
add_less_than
Add a less_than layer to the model that performs the element-wise less-than (<) operation or less-than-or-equal-to (<=) operation.
coremltools/models/neural_network/builder.py:6253
↓ 6 callers
Method
add_path
deps/protobuf/src/google/protobuf/descriptor.pb.h:14121
↓ 6 callers
Method
add_scatter
Add a scatter layer to the model that scatters data into a new tensor according to indices from the input. Refer to the ``Sca
coremltools/models/neural_network/builder.py:6526
↓ 6 callers
Function
any_variadic
(val)
coremltools/converters/mil/mil/types/symbolic.py:71
↓ 6 callers
Function
arrayBufferSlice
* ArrayBuffer.prototype.slice, but fallback to manual copy if missing. * @param {!ArrayBuffer} buffer * @param {number} start * @param {number=} en
deps/protobuf/js/experimental/runtime/kernel/typed_arrays.js:53
↓ 6 callers
Function
ascii_isspace
deps/protobuf/src/google/protobuf/stubs/strutil.h:78
↓ 6 callers
Method
assertFloatEquals
* Polyfill for phpunit6. */
deps/protobuf/php/tests/test_base.php:30
↓ 6 callers
Method
assertInvalid
(int... bytesAsInt)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java:206
↓ 6 callers
Method
assertMapValuesSet
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2LiteTest.java:96
↓ 6 callers
Method
assertMapValuesSet
(TestMap message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapLiteTest.java:99
↓ 6 callers
Function
assert_equal_tensor_ref
(mat, writeable=True, modified=None)
deps/pybind11/tests/test_eigen_tensor.py:52
↓ 6 callers
Method
begin
deps/pybind11/tests/test_sequences_and_iterators.cpp:261
↓ 6 callers
Method
block
deps/pybind11/tests/test_eigen_matrix.cpp:250
↓ 6 callers
Method
boolean
deps/nlohmann/json.hpp:6141
↓ 6 callers
Function
buildBasicNeuralNetworkClassifierModel
mlmodel/tests/ModelCreationUtils.cpp:164
↓ 6 callers
Function
capsule
deps/pybind11/include/pybind11/pytypes.h:1955
↓ 6 callers
Method
cbegin
deps/protobuf/src/google/protobuf/map.h:1204
↓ 6 callers
Method
cend
deps/protobuf/src/google/protobuf/map.h:1205
↓ 6 callers
Method
changeValue
(LazyField lazyField)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LazyFieldTest.java:116
↓ 6 callers
Function
checkCriticalTypeUnsignedInt32
* Ensures that value is a valid unsigned int32. * @param {*} value * @throws {!Error} If the value is out of range and the check state * is critica
deps/protobuf/js/experimental/runtime/internal/checks.js:619
↓ 6 callers
Function
checkCriticalTypeUnsignedInt32Array
* Checks whether a given object is an array of unsigned int32. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:635
↓ 6 callers
Method
checkIsLite
Checks that the {@link Extension} is Lite and returns it as a {@link GeneratedExtension}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java:1400
↓ 6 callers
Method
checkRange
Checks that the given range falls within the bounds of an array @param startIndex the start index of the range (inclusive) @param endIndex the end in
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:1279
↓ 6 callers
Method
clear
(Builder builder)
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2050
↓ 6 callers
Method
close
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:3891
↓ 6 callers
Method
compare
deps/pybind11/include/pybind11/buffer_info.h:189
↓ 6 callers
Method
compress
The compress method performs a `k-means` operation on all supported modules. Args: num_kmeans_workers (:obj:`int`): Numb
coremltools/optimize/torch/palettization/post_training_palettization.py:281
↓ 6 callers
Method
computeBytesSizeNoTag
Compute the number of bytes that would be needed to encode a {@code bytes} field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:861
↓ 6 callers
Function
connect_edge
(g, source, dest)
coremltools/converters/mil/frontend/tensorflow/basic_graph_ops.py:7
↓ 6 callers
Function
constexpr_sum
deps/pybind11/include/pybind11/detail/common.h:824
↓ 6 callers
Method
consume
If the next token exactly matches {@code token}, consume it. Otherwise, throw a {@link ParseException}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:1024
↓ 6 callers
Method
copy
deps/protobuf/src/google/protobuf/stubs/stringpiece.cc:78
↓ 6 callers
Method
copyFrom
Copies the specified range of the specified array into a new array
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:110
↓ 6 callers
Method
create
Construct a new, empty instance.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ExtensionRegistryFactory.java:60
↓ 6 callers
Method
createLazyFieldFromMessage
(MessageLite message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LazyFieldTest.java:110
↓ 6 callers
Function
create_model
Create MLModel with specified types Parameters ---------- spec: Pb spec from 3rd party converted model Returns ------- M
coremltools/test/sklearn_tests/test_io_types.py:23
↓ 6 callers
Method
dec_ref
deps/pybind11/include/pybind11/gil.h:93
↓ 6 callers
Method
decodeUnknownField
Decodes an unknown field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ArrayDecoders.java:983
↓ 6 callers
Function
decode_isdone
deps/protobuf/php/ext/google/protobuf/php-upb.h:1858
↓ 6 callers
Function
decode_isdone
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1862
↓ 6 callers
Method
defaultValue
* @ignore */
deps/protobuf/php/src/Google/Protobuf/Internal/Message.php:267
↓ 6 callers
Function
dtype
(context, node)
coremltools/converters/mil/frontend/torch/ops.py:7767
↓ 6 callers
Method
dtype
(self)
coremltools/converters/mil/mil/var.py:256
↓ 6 callers
Function
encode_bytes
Writes the given bytes to the buffer, handling reserve/advance. */
deps/protobuf/php/ext/google/protobuf/php-upb.c:1079
↓ 6 callers
Function
encode_bytes
Writes the given bytes to the buffer, handling reserve/advance. */
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:1079
↓ 6 callers
Method
encodedLength
Returns the number of bytes in the UTF-8-encoded form of {@code sequence}. For a string, this method is equivalent to {@code string.getBytes(UTF_8).le
deps/protobuf/java/core/src/main/java/com/google/protobuf/Utf8.java:239
↓ 6 callers
Method
end
deps/pybind11/tests/test_sequences_and_iterators.cpp:262
↓ 6 callers
Method
end_array
deps/nlohmann/json.hpp:6191
↓ 6 callers
Method
end_object
deps/nlohmann/json.hpp:6181
↓ 6 callers
Function
ensureCommonBaseLine
* Ensures certain base libs are live so we can have an apples to apples * comparison for code size of different implementations
deps/protobuf/js/experimental/benchmarks/code_size/code_size_base.js:51
↓ 6 callers
Method
ensureIsMutable
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:1062
↓ 6 callers
Method
ensureMutableMessageList
Ensures that the list of messages is mutable so it can be updated. If it's immutable, a copy is made.
deps/protobuf/java/core/src/main/java/com/google/protobuf/RepeatedFieldBuilderV3.java:146
↓ 6 callers
Method
ensureMutableMessageList
Ensures that the list of messages is mutable so it can be updated. If it's immutable, a copy is made.
deps/protobuf/java/core/src/main/java/com/google/protobuf/RepeatedFieldBuilder.java:146
↓ 6 callers
Method
entrySet
Similar to the AbstractMap implementation of {@code keySet()} and {@code values()}, the entry set is created the first time this method is called, and
deps/protobuf/java/core/src/main/java/com/google/protobuf/SmallSortedMap.java:351
↓ 6 callers
Method
enumvalue_size
deps/protobuf/src/google/protobuf/type.pb.h:2104
↓ 6 callers
Method
eol
Signifies reaching the "end of the current line" in the output. In single-line mode, this does not result in a newline being emitted, but ensures that
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:866
↓ 6 callers
Method
escapeBytes
Escapes bytes in the format used in protocol buffer text format, which is the same as the format used for C string literals. All bytes that are not pr
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:2284
↓ 6 callers
Method
execute
deps/pybind11/include/pybind11/operators.h:89
↓ 6 callers
Function
fft_canonicalize_length_dim
Canonicalize shape and dim for 1-D FFT (based on PyTorch's fft documentation): - length: Signal length. If given, the input will either be ze
coremltools/converters/mil/mil/ops/defs/complex_dialect_ops.py:51
↓ 6 callers
Method
field_size
deps/protobuf/src/google/protobuf/descriptor.pb.h:9525
↓ 6 callers
Method
findExtensionByNumber
( ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageReflection.java:225
↓ 6 callers
Method
findLiteExtensionByNumber
Find an extension by containing type and field number. @return Information about the extension if found, or {@code null} otherwise.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ExtensionRegistryLite.java:153
↓ 6 callers
Method
fixed32
deps/protobuf/src/google/protobuf/unknown_field_set.h:349
↓ 6 callers
Method
fixed64
deps/protobuf/src/google/protobuf/unknown_field_set.h:353
↓ 6 callers
Method
forOneofMemberField
Constructor for a field that is part of a oneof. @param fieldNumber the unique field number for this field within the message. @param fieldType the t
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldInfo.java:225
↓ 6 callers
Method
forRepeatedMessageField
Constructs a new descriptor for a repeated message field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldInfo.java:114
↓ 6 callers
Method
free
deps/pybind11/include/pybind11/eigen/tensor.h:84
↓ 6 callers
Method
from_samples
(samples: List[float])
coremltools/models/ml_program/experimental/perf_utils.py:184
↓ 6 callers
Function
fused_mod_config
Returns backend pattern config for fused modules.
coremltools/optimize/torch/quantization/_backend_config_utils.py:108
↓ 6 callers
Method
get
(int index)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:110
↓ 6 callers
Method
getBuilder
Gets a builder for the field. If no builder has been created yet, a builder is created on demand by calling {@link Message#toBuilder}. @return The bu
deps/protobuf/java/core/src/main/java/com/google/protobuf/SingleFieldBuilderV3.java:124
↓ 6 callers
Method
getExtensionRegistryLite
Get an unmodifiable {@link ExtensionRegistryLite} containing all the extensions of {@code TestAllExtensionsLite}.
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtilLite.java:306
↓ 6 callers
Method
getFieldCount
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:2735
↓ 6 callers
Method
getFields
* The list of fields. * * Generated from protobuf field <code>repeated .google.protobuf.Field fields = 2;</code> * @return \Google\Prot
deps/protobuf/php/src/Google/Protobuf/Type.php:112
↓ 6 callers
Method
getFile
* Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> * @return \Google\Protobuf\Internal\Repeated
deps/protobuf/php/src/Google/Protobuf/Internal/FileDescriptorSet.php:44
↓ 6 callers
Method
getGeneratedPool
()
deps/protobuf/php/src/Google/Protobuf/Internal/DescriptorPool.php:50
↓ 6 callers
Method
getLocations
Retrieve all the locations of a field. @param fieldDescriptor the {@link FieldDescriptor} of the desired field @return a list of the locations of val
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormatParseInfoTree.java:97
↓ 6 callers
Method
getMapDefaultEntry
(Class<?> clazz, String name)
deps/protobuf/java/core/src/main/java/com/google/protobuf/SchemaUtil.java:825
↓ 6 callers
Method
getMutableList
Gets a mutable List view of this MapField.
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapField.java:246
↓ 6 callers
Method
getName
Get the field's unqualified name.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:1083
↓ 6 callers
Method
getNestedType
()
deps/protobuf/php/src/Google/Protobuf/Internal/Descriptor.php:94
← previous
next →
2,201–2,300 of 41,379, ranked by callers