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
↓ 43 callers
Function
promote_input_dtypes
This utility function promotes all input variables to the same data type. It is used to homogenize inputs to an op such as matmul / elementwi
coremltools/converters/mil/mil/ops/defs/_utils.py:430
↓ 43 callers
Method
readTag
Attempt to read a field tag, returning zero if we have reached EOF. Protocol message parsers use this to read tags, since a protocol message may legal
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:213
↓ 42 callers
Function
print_destroyed
deps/pybind11/tests/constructor_stats.h:314
↓ 42 callers
Method
run_compare_tf_keras
( model, input_values, inputs_for_conversion=None, compute_uni
coremltools/converters/mil/frontend/tensorflow2/test/testing_utils.py:286
↓ 42 callers
Method
toByteArray
Serializes the message to a {@code byte} array and returns it. This is just a trivial wrapper around {@link #writeTo(CodedOutputStream)}. If this mes
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageLite.java:104
↓ 41 callers
Method
Annotate
deps/protobuf/src/google/protobuf/io/printer.cc:92
↓ 41 callers
Method
CopyFrom
()
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/ByteStringBenchmark.cs:60
↓ 41 callers
Method
FieldSize
deps/protobuf/src/google/protobuf/generated_message_reflection.cc:1123
↓ 41 callers
Method
WriteTo
(pb::CodedOutputStream output)
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestCustomOptionsProto3.cs:3497
↓ 41 callers
Method
getEmptyRegistry
Get the unmodifiable singleton empty instance of either ExtensionRegistryLite or {@code ExtensionRegistry} (if the full (non-Lite) proto libraries are
deps/protobuf/java/core/src/main/java/com/google/protobuf/ExtensionRegistryLite.java:125
↓ 41 callers
Function
is_null
! @brief return whether value is null This function returns true if and only if the JSON value is null. @return `true` if type is null,
deps/nlohmann/json.hpp:19274
↓ 41 callers
Method
minimum
mlmodel/src/LayerShapeConstraints.cpp:307
↓ 41 callers
Method
next
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyField.java:139
↓ 41 callers
Function
validateInputOutputRankEquality
mlmodel/src/Validation/NeuralNetwork/NeuralNetworkValidatorUtils.hpp:80
↓ 40 callers
Method
MergeFrom
(OneBytes other)
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestProto3.cs:6057
↓ 40 callers
Method
SerializeAsString
deps/protobuf/src/google/protobuf/message_lite.cc:490
↓ 40 callers
Method
WriteBytes
<summary> Write a byte string, without a tag, to the stream. The data is length-prefixed. </summary> <param name="value">The value to write</param>
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:206
↓ 40 callers
Function
_upb_msg_new
deps/protobuf/php/ext/google/protobuf/php-upb.c:1492
↓ 40 callers
Function
_upb_msg_new
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:1492
↓ 40 callers
Method
copyFromUtf8
Encodes {@code text} into a sequence of UTF-8 bytes and returns the result as a {@code ByteString}. @param text source string @return new {@code Byte
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:462
↓ 40 callers
Function
func
()
deps/pybind11/tests/test_virtual_functions.py:445
↓ 40 callers
Method
is_packed
deps/protobuf/src/google/protobuf/descriptor.cc:3568
↓ 40 callers
Method
items
(self)
deps/protobuf/python/google/protobuf/internal/well_known_types.py:782
↓ 40 callers
Method
run
(ParameterType parameter)
deps/protobuf/java/core/src/main/java/com/google/protobuf/RpcCallback.java:45
↓ 40 callers
Method
setValue
(V value)
deps/protobuf/java/core/src/test/java/com/google/protobuf/SmallSortedMapTest.java:72
↓ 40 callers
Method
syntax
deps/protobuf/src/google/protobuf/api.pb.h:1060
↓ 40 callers
Method
type
mlmodel/src/Result.cpp:34
↓ 39 callers
Method
Clone
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestProto3.cs:5960
↓ 39 callers
Function
GetOwningArena
deps/protobuf/src/google/protobuf/arena.h:750
↓ 39 callers
Method
Type
deps/protobuf/src/google/protobuf/type.pb.cc:356
↓ 39 callers
Method
__init__
(self)
coremltools/converters/mil/frontend/torch/test/test_torch_ops.py:10996
↓ 39 callers
Function
_is_macos
Returns True if current platform is MacOS, False otherwise.
coremltools/models/utils.py:954
↓ 39 callers
Function
addLearningRate
mlmodel/tests/ParameterTests.cpp:26
↓ 39 callers
Method
finalize
Prepares the model for export. Args: model (:py:class:`_torch.nn.Module`): Model to be finalized. inplace (:
coremltools/optimize/torch/quantization/quantizer.py:270
↓ 39 callers
Method
forEach
* Executes the provided function once for each field. * * @param {function(!FieldType, number): void} callback
deps/protobuf/js/experimental/runtime/kernel/storage.js:46
↓ 39 callers
Method
mergeFromJsonString
* Parses a json string to protobuf message. * * This function takes a string in the json wire format, matching the * encoding output by
deps/protobuf/php/src/Google/Protobuf/Internal/Message.php:790
↓ 39 callers
Method
newInstance
Creates a new instance of the message class.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Schema.java:69
↓ 38 callers
Method
Add
<summary> Adds the specified key/value pair to the map. </summary> <remarks> This operation fails if the key already exists in the map. To replace an
deps/protobuf/csharp/src/Google.Protobuf/Collections/MapField.cs:118
↓ 38 callers
Method
CalculateSize
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestProto3.cs:6044
↓ 38 callers
Method
DebugString
deps/protobuf/src/google/protobuf/descriptor.cc:3009
↓ 38 callers
Method
GetHashCode
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestProto3.cs:5997
↓ 38 callers
Method
TestMap
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/MapUnittestProto3.cs:202
↓ 38 callers
Function
addMiniBatchSize
mlmodel/tests/ParameterTests.cpp:55
↓ 38 callers
Method
flush
Flushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:923
↓ 38 callers
Method
getAllSet
Get a {@code TestAllTypes} with all fields set as they would be by {@link #setAllFields(TestAllTypes.Builder)}.
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:278
↓ 38 callers
Method
getJavaType
Gets the {@link JavaType} for this field. For lists, this identifies the type of the elements contained within the list.
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldType.java:142
↓ 38 callers
Function
handle
The default constructor creates a handle with a ``nullptr``-valued pointer
deps/pybind11/include/pybind11/pytypes.h:229
↓ 38 callers
Method
print
(final CharSequence text)
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java:624
↓ 38 callers
Method
schemaFor
Gets the schema for the given message type.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Protobuf.java:85
↓ 37 callers
Function
StringPiece
deps/protobuf/src/google/protobuf/stubs/stringpiece.h:208
↓ 37 callers
Function
_upb_array_append_accessor2
deps/protobuf/php/ext/google/protobuf/php-upb.h:1430
↓ 37 callers
Function
_upb_array_append_accessor2
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h:1434
↓ 37 callers
Method
addAll
(Collection<? extends Integer> collection)
deps/protobuf/java/core/src/main/java/com/google/protobuf/IntArrayList.java:236
↓ 37 callers
Method
addRepeatedField
Like {@code setRepeatedField}, but appends the value as a new element. @throws IllegalArgumentException The field is not a repeated field, or {@code
deps/protobuf/java/core/src/main/java/com/google/protobuf/Message.java:232
↓ 37 callers
Method
getEnumType
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:67
↓ 37 callers
Function
get_type_info
(t)
coremltools/converters/mil/mil/types/get_type_info.py:50
↓ 37 callers
Method
isExtension
Is this field an extension?
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:1234
↓ 37 callers
Function
print_created
deps/pybind11/tests/constructor_stats.h:309
↓ 37 callers
Method
real_containing_oneof
deps/protobuf/src/google/protobuf/descriptor.h:2297
↓ 37 callers
Method
remaining
Returns the number of elements between the current {@link #position()} and the {@link #limit()} . @return The number of elements remaining in this bu
deps/protobuf/java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java:124
↓ 36 callers
Method
AddSerializedFile
Adds the FileDescriptorProto and its types to this pool. Args: serialized_file_desc_proto (bytes): A bytes string, serialization of the
deps/protobuf/python/google/protobuf/descriptor_pool.py:204
↓ 36 callers
Method
Value
deps/protobuf/src/google/protobuf/struct.pb.cc:43
↓ 36 callers
Method
alive
deps/pybind11/tests/constructor_stats.h:131
↓ 36 callers
Method
decodeVarint32
Decodes a varint. Returns the position after the varint. The decoded varint is stored in registers.int1.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ArrayDecoders.java:78
↓ 36 callers
Method
dependency
deps/protobuf/src/google/protobuf/descriptor.cc:7972
↓ 36 callers
Method
get_shape
(cls)
coremltools/converters/mil/mil/types/type_tensor.py:85
↓ 36 callers
Method
hasField
Returns true if the given field is set. This is exactly equivalent to calling the generated "has" accessor method corresponding to the field. @throws
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageReflection.java:243
↓ 36 callers
Function
numpy_type_to_builtin_type
Converts a numpy type to its builtin `types` equivalent. Supports Python native types and numpy types.
coremltools/converters/mil/mil/types/type_mapping.py:412
↓ 36 callers
Method
package
deps/protobuf/src/google/protobuf/descriptor_database.cc:471
↓ 36 callers
Method
parser
Creates a {@link Parser} with default configuration.
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java:396
↓ 36 callers
Method
printer
Printer instance which escapes non-ASCII characters.
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:287
↓ 35 callers
Method
Clone
()
deps/protobuf/csharp/src/Google.Protobuf/Reflection/Descriptor.cs:5096
↓ 35 callers
Method
ComputeEnumSize
<summary> Computes the number of bytes that would be needed to encode a enum field, including the tag. The caller is responsible for converting the en
deps/protobuf/csharp/src/Google.Protobuf/CodedOutputStream.ComputeSize.cs:181
↓ 35 callers
Method
FromGeneratedCode
<summary> Creates a descriptor for generated code. </summary> <remarks> This method is only designed to be used by the results of generating code with
deps/protobuf/csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs:419
↓ 35 callers
Method
RegisterMessage
Registers the given message type in the local database. Calls to GetSymbol() and GetMessages() will return messages registered here. Args:
deps/protobuf/python/google/protobuf/symbol_database.py:69
↓ 35 callers
Function
addEpochs
mlmodel/tests/ParameterTests.cpp:184
↓ 35 callers
Method
getSeconds
* Signed seconds of the span of time. Must be from -315,576,000,000 * to +315,576,000,000 inclusive. Note: these bounds are computed from: *
deps/protobuf/php/src/Google/Protobuf/Duration.php:114
↓ 35 callers
Method
indexOf
(Object element)
deps/protobuf/java/core/src/main/java/com/google/protobuf/IntArrayList.java:142
↓ 35 callers
Function
is_current_opset_version_compatible_with
(opset_version)
coremltools/converters/mil/mil/block.py:39
↓ 35 callers
Method
try_replace_uses_of_var_after_op
:param anchor_op: Operation :param old_var: Var :param new_var: Var :param end_op: Operation :param no_check_
coremltools/converters/mil/mil/block.py:663
↓ 34 callers
Method
ForString
<summary> Retrieves a codec suitable for a string field with the given tag. </summary> <param name="tag">The tag.</param> <returns>A codec for the giv
deps/protobuf/csharp/src/Google.Protobuf/FieldCodec.cs:54
↓ 34 callers
Method
ToByteArray
()
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs:81
↓ 34 callers
Function
Version
deps/protobuf/src/google/protobuf/compiler/plugin.pb.h:119
↓ 34 callers
Method
checkBool
(&$var)
deps/protobuf/php/src/Google/Protobuf/Internal/GPBUtil.php:186
↓ 34 callers
Method
contains
(Object element)
deps/protobuf/java/core/src/main/java/com/google/protobuf/IntArrayList.java:157
↓ 34 callers
Function
get
Gets the byte at [index]. */
deps/protobuf/java/kotlin/src/main/kotlin/com/google/protobuf/ByteStrings.kt:44
↓ 34 callers
Method
getInt
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:594
↓ 34 callers
Method
pop_back
! @brief remove last reference token @pre not `empty()` @liveexample{The example shows the usage of `pop_back`.,json_pointer__pop_back}
deps/nlohmann/json.hpp:12112
↓ 34 callers
Method
wrap
Creates a new {@link AllocatedBuffer} that is backed by the given array. The returned buffer will have {@link #hasArray} == {@code true}, {@link #arra
deps/protobuf/java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java:131
↓ 33 callers
Function
FindOrNull
deps/protobuf/src/google/protobuf/stubs/map_util.h:136
↓ 33 callers
Method
ReleaseNonDefault
deps/protobuf/src/google/protobuf/arenastring.cc:171
↓ 33 callers
Method
WriteLength
<summary> Writes a length (in bytes) for length-delimited data. </summary> <remarks> This method simply writes a rawint, but exists for clarity in cal
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:272
↓ 33 callers
Method
full
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapFieldSchemas.java:37
↓ 33 callers
Method
getTestBytes
(int size, long seed)
deps/protobuf/java/core/src/test/java/com/google/protobuf/ByteStringTest.java:65
↓ 33 callers
Method
load
deps/pybind11/include/pybind11/stl.h:70
↓ 33 callers
Function
msg
Sanitize messages and add custom failure explanation
deps/pybind11/tests/conftest.py:188
↓ 33 callers
Method
prepare
Prepares a model for palettization aware training by inserting :py:class:`FakePalettize` layers in appropriate places as specified by
coremltools/optimize/torch/palettization/palettizer.py:270
↓ 33 callers
Method
setName
* The fully qualified name of this interface, including package name * followed by the interface's simple name. * * Generated from prot
deps/protobuf/php/src/Google/Protobuf/Api.php:151
↓ 33 callers
Function
validateRankCount
mlmodel/src/Validation/NeuralNetwork/NeuralNetworkValidatorUtils.hpp:58
↓ 33 callers
Method
writeBytes
Writes a field of type {@link FieldType#BYTES}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Writer.java:90
← previous
next →
301–400 of 41,379, ranked by callers