MCPcopy Create free account

hub / github.com/apple/coremltools / functions

Functions41,379 in github.com/apple/coremltools

↓ 1,254 callersFunctionlen
Get the length of a Python object.
deps/pybind11/include/pybind11/pytypes.h:2446
↓ 1,074 callersMethodadd
Appends the specified element to the end of this list (optional operation). @param element element to be appended to this list @throws UnsupportedOpe
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringList.java:86
↓ 1,052 callersMethodsize
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormatEscaper.java:38
↓ 908 callersMethodget
(GeneratedMessageV3 message)
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2034
↓ 854 callersFunctionisinstance
deps/pybind11/include/pybind11/pytypes.h:842
↓ 748 callersMethodassertEqual
A convenience method to migrate from unittest (self.assertEqual) to pytest.
coremltools/converters/mil/mil/passes/tests/test_quantization_passes.py:2182
↓ 697 callersMethodbuild
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/Message.java:131
↓ 671 callersMethodarray
deps/pybind11/include/pybind11/numpy.h:831
↓ 656 callersMethodnewBuilder
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:2051
↓ 611 callersMethodReadTag
<summary> Reads a field tag, returning the tag of 0 for "end of input". </summary> <remarks> If this method returns 0, it doesn't necessarily mean the
deps/protobuf/csharp/src/Google.Protobuf/ParseContext.cs:158
↓ 587 callersFunctionlist
(arg, init_length=None, dynamic_length=True)
coremltools/converters/mil/mil/types/type_list.py:31
↓ 548 callersMethodMergeFieldFrom
<summary> Parse a single field from <paramref name="ctx"/> and merge it into this set. </summary> <param name="ctx">The parse context from which to re
deps/protobuf/csharp/src/Google.Protobuf/UnknownFieldSet.cs:204
↓ 507 callersFunctionget_op_types_in_program
Return the operation types in prog[func_name], in the same order as they are stored (topological) If ``skip_const_ops = True``, const ops
coremltools/converters/mil/testing_utils.py:315
↓ 501 callersMethodformat
deps/pybind11/include/pybind11/pytypes.h:1632
↓ 498 callersMethodconvert
()
coremltools/modelrunner/ModelRunner/DeviceCtl.swift:386
↓ 462 callersMethodappend
(self, other)
coremltools/converters/mil/mil/types/type_list.py:43
↓ 402 callersMethodrun_compare_torch
Override compare method for Activation ops tests, as we want to verify the mixed precision support for alpha/beta in IOS17 Activation Ops.
coremltools/converters/mil/frontend/torch/test/test_torch_ops.py:6222
↓ 393 callersMethodreshape
Optional `order` parameter omitted, to be added as needed.
deps/pybind11/include/pybind11/numpy.h:1069
↓ 391 callersFunctionGetArenaForAllocation
Returns the arena, used for allocating internal objects(e.g., child messages, etc), or owning incoming objects (e.g., set allocated).
deps/protobuf/src/google/protobuf/message_lite.h:443
↓ 389 callersMethodWriteRawTag
<summary> Writes the given single-byte tag. </summary> <param name="b1">The encoded tag</param>
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:300
↓ 380 callersFunctionapply_pass_and_basic_check
Apply pass to the program
coremltools/converters/mil/testing_utils.py:653
↓ 366 callersMethodempty
deps/protobuf/src/google/protobuf/map.h:1209
↓ 343 callersMethodname
deps/protobuf/src/google/protobuf/compiler/csharp/csharp_field_base.cc:202
↓ 333 callersMethodplaceholder
( shape: Tuple[Any], dtype: Optional[Type] = None, allow_rank0_input: Optional[bool] =
coremltools/converters/mil/mil/builder.py:243
↓ 321 callersMethodPrint
deps/protobuf/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:1806
↓ 319 callersFunctiontuple
(args)
coremltools/converters/mil/mil/types/type_tuple.py:33
↓ 305 callersFunctiondict
(keytype, valuetype)
coremltools/converters/mil/mil/types/type_dict.py:31
↓ 297 callersMethodpush_back
! @brief append an unescaped token at the end of the reference pointer @param[in] token token to add @complexity Amortized constant.
deps/nlohmann/json.hpp:12158
↓ 288 callersFunctionmove
deps/pybind11/include/pybind11/cast.h:1243
↓ 277 callersMethodReadRawMessage
<summary> Reads a top-level message or a nested message after the limits for this message have been pushed. (parser will proceed until the end of the
deps/protobuf/csharp/src/Google.Protobuf/CodedInputStream.cs:684
↓ 274 callersMethodWriteRawMessage
<summary> Writes a message, without a tag, to the stream. Only the message data is written, without a length-delimiter. </summary> <param name="value"
deps/protobuf/csharp/src/Google.Protobuf/CodedOutputStream.cs:285
↓ 271 callersFunctionrun_compare_builder
Inputs: - build: python function taking input of Vars and returning Var or list[Var]. Each input argument in build must match a
coremltools/converters/mil/mil/ops/tests/testing_utils.py:56
↓ 263 callersMethodfind_ops
Return list of ops with name matching `prefix` if specified and op_type, if specified. At least one of {prefix, op_type} must be spec
coremltools/converters/mil/mil/block.py:302
↓ 261 callersMethoditems
(self)
coremltools/converters/mil/mil/input_type.py:22
↓ 258 callersMethodSet
deps/protobuf/src/google/protobuf/descriptor.cc:7992
↓ 257 callersMethodvalues
Move out stored values
deps/pybind11/tests/constructor_stats.h:153
↓ 248 callersMethodmessage_type
message_type(), enum_type(), default_value_enum(), and type() all share the same internal::call_once init path to do lazy import building and cross li
deps/protobuf/src/google/protobuf/descriptor.cc:7926
↓ 244 callersMethodclear
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/Message.java:107
↓ 239 callersMethodTestAllTypes
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs:1148
↓ 233 callersFunctionassert_model_is_valid
Assert Core ML model is valid. Inputs: - input: str -> shape tuple. All program input names need to appear in str. shape tuple ca
coremltools/converters/mil/testing_utils.py:180
↓ 229 callersMethodappend
(self, value)
deps/protobuf/python/google/protobuf/internal/well_known_types.py:814
↓ 222 callersFunctionprint
deps/pybind11/include/pybind11/pybind11.h:2736
↓ 221 callersMethodset_name
(self, name)
coremltools/converters/mil/mil/var.py:319
↓ 217 callersMethodToDiagnosticString
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ForeignMessagePartial.cs:40
↓ 215 callersMethodtype
deps/protobuf/src/google/protobuf/descriptor.h:2264
↓ 213 callersMethodWriteInt32
<summary> Writes an int32 field value, without a tag. </summary> <param name="value">The value to write</param>
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:140
↓ 212 callersMethodrun_compare_tf
Override compare method for Activation ops tests, as we want to verify the mixed precision support for alpha/beta in IOS17 Activation Ops.
coremltools/converters/mil/frontend/tensorflow/test/test_ops.py:261
↓ 209 callersFunctionStrCat
deps/protobuf/src/google/protobuf/stubs/strutil.h:731
↓ 207 callersFunction_get_inputs
Look up a node's inputs in @context and return them as a list. If @expected is not None, also verifies the number of inputs matches the v
coremltools/converters/mil/frontend/torch/ops.py:260
↓ 207 callersMethodpredict
Return predictions for the model. Parameters ---------- data: dict[str, value] or list[dict[str, value]]
coremltools/models/model.py:791
↓ 206 callersMethodArray
mlmodel/src/DataType.cpp:58
↓ 199 callersFunctionhasattr
\addtogroup python_builtins @{
deps/pybind11/include/pybind11/pytypes.h:870
↓ 199 callersFunctionrandom_gen
This helper function generates a random array of shape `shape` The range of generated numbers will be between (rand_min, rand_max]. The v
coremltools/converters/mil/testing_utils.py:324
↓ 197 callersMethodWriteTo
(pb::CodedOutputStream output)
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs:19161
↓ 196 callersMethodoptions
deps/protobuf/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc:68
↓ 194 callersMethodjoin
(self)
deps/pybind11/tests/test_thread.py:21
↓ 190 callersMethodextend
(self, elem_seq)
deps/protobuf/python/google/protobuf/internal/well_known_types.py:817
↓ 188 callersMethodskip
* Seeks forward by the given amount. * @param {number} skipAmount * @package
deps/protobuf/js/experimental/runtime/kernel/buffer_decoder.js:276
↓ 184 callersMethodfull_name
deps/protobuf/src/google/protobuf/descriptor.cc:198
↓ 179 callersMethodfield
Gets the field with the given name within the class, or {@code null} if not found.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:468
↓ 176 callersMethodparseFrom
Parses a message of {@code MessageType} from the input. <p>Note: The caller should call {@link CodedInputStream#checkLastTagWas(int)} after calling t
deps/protobuf/java/core/src/main/java/com/google/protobuf/Parser.java:61
↓ 175 callersMethodfile
The mock file in which this descriptor was defined.
deps/protobuf/src/google/protobuf/io/printer_unittest.cc:197
↓ 174 callersMethodisEmpty
Returns {@code true} if the size is {@code 0}, {@code false} otherwise. @return true if this is zero bytes long
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:235
↓ 173 callersMethodmergeFrom
Reads fields from the given {@link Reader} and merges them into the message. It doesn't make the message immutable after parsing is done. To make the
deps/protobuf/java/core/src/main/java/com/google/protobuf/Schema.java:50
↓ 170 callersFunctiontype
! @brief return the type of the JSON value (explicit) Return the type of the JSON value as a value from the @ref value_t enumeration.
deps/nlohmann/json.hpp:19194
↓ 168 callersMethodReadInt32
(BinaryReader input)
deps/protobuf/csharp/src/Google.Protobuf.Conformance/Program.cs:163
↓ 168 callersMethodWriteString
<summary> Writes a string field value, without a tag. The data is length-prefixed. </summary> <param name="value">The value to write</param>
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:177
↓ 168 callersMethodfield_count
deps/protobuf/src/google/protobuf/unknown_field_set.h:322
↓ 166 callersMethodAddEntriesFrom
<summary> Adds entries to the map from the given stream. </summary> <remarks> It is assumed that the stream is initially positioned after the tag spec
deps/protobuf/csharp/src/Google.Protobuf/Collections/MapField.cs:425
↓ 166 callersMethodget_spec
Get a deep copy of the protobuf specification of the model. Returns ------- model: Model_pb2 Protobuf sp
coremltools/models/model.py:772
↓ 162 callersMethodReadString
<summary> Reads a string field from the input. </summary>
deps/protobuf/csharp/src/Google.Protobuf/ParseContext.cs:238
↓ 157 callersMethodtoByteString
Serializes the message to a {@code ByteString} 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:95
↓ 155 callersFunctionlen
deps/protobuf/python/google/protobuf/pyext/extension_dict.cc:65
↓ 154 callersMethodWhichOneof
Returns the name of the field that is set inside a oneof group. If no field is set, returns None. Args: oneof_group (str): the name of
deps/protobuf/python/google/protobuf/message.py:295
↓ 154 callersMethodgetDescriptor
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java:1833
↓ 152 callersMethodcpp_type
deps/protobuf/src/google/protobuf/descriptor.h:2372
↓ 152 callersMethodequals
Determine of the two messages are equal.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Schema.java:72
↓ 147 callersMethodWriteMessage
<summary> Writes a message, without a tag. The data is length-prefixed. </summary> <param name="value">The value to write</param>
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:187
↓ 146 callersMethodkeys
(self)
deps/protobuf/python/google/protobuf/internal/well_known_types.py:776
↓ 145 callersMethod_add_generic_layer
( self, name, input_names, output_names, input_ranks=None, inp
coremltools/models/neural_network/builder.py:1200
↓ 145 callersMethodgetValue
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/Proto3MessageLiteFactory.java:144
↓ 145 callersMethodis_repeated
deps/protobuf/src/google/protobuf/descriptor.h:2279
↓ 143 callersMethodptr
deps/pybind11/tests/test_class.cpp:485
↓ 142 callersMethodput
(K key, V value)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapFieldLite.java:92
↓ 138 callersMethod_test_model
( self, model, input, expected, model_precision=_MLMODEL_FULL_PRECISIO
coremltools/test/neural_network/test_numpy_nn_layers.py:152
↓ 137 callersMethodname
mlmodel/src/LayerShapeConstraints.cpp:775
↓ 136 callersFunctiongetattr
deps/pybind11/include/pybind11/pytypes.h:890
↓ 134 callersMethodtoByteArray
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/CodedOutputStreamTest.java:57
↓ 133 callersMethodend
deps/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.h:911
↓ 132 callersMethodcast
deps/pybind11/include/pybind11/cast.h:1234
↓ 130 callersMethodgetDefaultInstance
Gets the default instance of this type.
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageInfo.java:42
↓ 126 callersMethodFlush
()
deps/protobuf/csharp/src/Google.Protobuf/WriteContext.cs:351
↓ 126 callersFunctionvalidateInputCount
Min and max are the minimum and maximum number of possible inputs. negative values are interpreted as no bound
mlmodel/src/Validation/NeuralNetwork/NeuralNetworkValidatorUtils.hpp:96
↓ 126 callersFunctionvalidateOutputCount
mlmodel/src/Validation/NeuralNetwork/NeuralNetworkValidatorUtils.hpp:161
↓ 124 callersMethodtoString
Converts the message to a string in protocol buffer text format. This is just a trivial wrapper around {@link TextFormat.Printer#printToString(Message
deps/protobuf/java/core/src/main/java/com/google/protobuf/Message.java:90
↓ 123 callersMethodinsert
insert
deps/protobuf/src/google/protobuf/map.h:1282
↓ 122 callersMethodIndent
deps/protobuf/src/google/protobuf/io/printer.cc:186
↓ 122 callersMethodnumber
deps/protobuf/src/google/protobuf/compiler/csharp/csharp_field_base.cc:408
↓ 121 callersMethodenum_type
deps/protobuf/src/google/protobuf/descriptor.cc:7935
↓ 121 callersMethodgetField
Obtains the value of the given field, or the default value if it is not set. For primitive fields, the boxed primitive value is returned. For enum fie
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageReflection.java:234
next →1–100 of 41,379, ranked by callers