MCPcopy Create free account

hub / github.com/apple/coremltools / functions

Functions41,379 in github.com/apple/coremltools

↓ 2 callersMethodadd_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 callersFunctionadd_upsample_nn
(const_context, builder, op, scale_factor_h, scale_factor_w)
coremltools/converters/mil/backend/nn/op_mapping.py:3065
↓ 2 callersMethodadd_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 callersMethodadd_width_range
(self, width_range)
coremltools/models/neural_network/flexible_shape_utils.py:278
↓ 2 callersMethodadvanceIfCurrentPieceFullyRead
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 callersMethodallocateCopy
mlmodel/src/DataType.cpp:527
↓ 2 callersMethodallow_alias
deps/protobuf/src/google/protobuf/descriptor.pb.h:13331
↓ 2 callersFunctionannotate_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 callersFunctionarrayBufferEqual
* @param {!ArrayBuffer} buffer1 * @param {!ArrayBuffer} buffer2 * @return {boolean}
deps/protobuf/js/experimental/runtime/kernel/typed_arrays.js:13
↓ 2 callersMethodasByteString
* Returns the buffer as a ByteString. * @return {!ByteString}
deps/protobuf/js/experimental/runtime/kernel/buffer_decoder.js:326
↓ 2 callersMethodasReadOnlyByteBufferList
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 callersMethodasString
(Object o)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java:274
↓ 2 callersMethodasVerifier
(final Internal.EnumLiteMap<?> map)
deps/protobuf/java/core/src/test/java/com/google/protobuf/Proto2MessageInfoFactory.java:884
↓ 2 callersMethodas_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 callersFunctionas_string_view
deps/protobuf/src/google/protobuf/message_lite.cc:116
↓ 2 callersMethodassertAccepts
(String name, String value)
deps/protobuf/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java:372
↓ 2 callersMethodassertAtMostOneFieldSetOneof
(TestOneof2 message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:2560
↓ 2 callersMethodassertGenericListImmutable
(List<T> list, T value)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java:294
↓ 2 callersMethodassertImmutable
(IntList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/IntArrayListTest.java:423
↓ 2 callersMethodassertImmutable
(List<Integer> list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/ProtobufArrayListTest.java:245
↓ 2 callersMethodassertImmutable
(DoubleList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DoubleArrayListTest.java:425
↓ 2 callersMethodassertImmutable
(LongList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LongArrayListTest.java:423
↓ 2 callersMethodassertImmutable
(BooleanList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/BooleanArrayListTest.java:428
↓ 2 callersMethodassertImmutable
(FloatList list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/FloatArrayListTest.java:425
↓ 2 callersMethodassertIntegerTypes
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 callersMethodassertInvalidUtf8
(int... bytes)
deps/protobuf/java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java:175
↓ 2 callersMethodassertIsUnmodifiable
(List<?> list)
deps/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderV3Test.java:173
↓ 2 callersMethodassertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2LiteTest.java:195
↓ 2 callersMethodassertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2Test.java:283
↓ 2 callersMethodassertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapLiteTest.java:198
↓ 2 callersMethodassertMapValuesCleared
(TestMapOrBuilder testMapOrBuilder)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapTest.java:281
↓ 2 callersMethodassertMessageEquals
(MessageLite expected, MessageLite actual)
deps/protobuf/java/core/src/test/java/com/google/protobuf/ParserTest.java:100
↓ 2 callersMethodassertParseBadUtf8
(MessageLite defaultInstance, byte[] data)
deps/protobuf/java/core/src/test/java/com/google/protobuf/CheckUtf8Test.java:145
↓ 2 callersMethodassertRepeatedExtensionsModified
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 callersMethodassertRepeatedFieldsModified
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 callersMethodassertRepeatedFieldsModifiedViaReflection
(MessageOrBuilder message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:3464
↓ 2 callersMethodassertReuseCodedInputStreamPreserve
(Message message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:76
↓ 2 callersMethodassertUnknownFieldsExplicitlyDiscarded
(Message message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:113
↓ 2 callersMethodassertUnknownFieldsInUnknownFieldSetArePreserve
{@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 callersMethodassertUnknownFieldsPreserved
(MessageLite message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/DiscardUnknownFieldsTest.java:105
↓ 2 callersMethodassertValidUtf8
(ByteStringFactory factory, int[] bytes, boolean not)
deps/protobuf/java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java:148
↓ 2 callersFunctionassert_same_output_shapes
(prog1, prog2, func_name="main")
coremltools/converters/mil/testing_utils.py:265
↓ 2 callersFunctionassert_spec_input_type
(spec, expected_feature_type, expected_name=None, index=0)
coremltools/converters/mil/testing_utils.py:706
↓ 2 callersFunctionassert_spec_output_type
(spec, expected_feature_type, expected_name=None, index=0)
coremltools/converters/mil/testing_utils.py:726
↓ 2 callersFunctionassert_vector_size_same_as_axial_dimension
(param, axis_dim_size, name)
coremltools/converters/mil/mil/ops/defs/iOS17/quantization_ops.py:19
↓ 2 callersMethodassert_weights_changed
(prog1, prog2)
coremltools/converters/mil/mil/passes/tests/test_passes.py:7262
↓ 2 callersMethodassetIntegerBoundsChecking
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 callersMethodavailableInternal
Computes the number of bytes still available to read.
deps/protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java:967
↓ 2 callersMethodbackward_2d
(X, C, grad_output)
coremltools/optimize/torch/palettization/fake_palettize.py:745
↓ 2 callersMethodbark
deps/pybind11/tests/test_class.cpp:108
↓ 2 callersFunctionbasename
extract the portion of filename before the first . character
mlmodel/tools/enumgen.cpp:13
↓ 2 callersMethodbegin
deps/protobuf/src/google/protobuf/reflection.h:188
↓ 2 callersMethodbenchmark_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 callersMethodbenchmark_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 callersMethodbind_module
(self, module: _torch.nn.Module)
coremltools/optimize/torch/pruning/_base_pruning_method.py:47
↓ 2 callersFunctionblob_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 callersMethodblockwise_compress_by_dtype
Similar to `blockwise_compress`, but use `dtype` to specify quant dtype.
coremltools/optimize/coreml/_quantization_passes.py:1309
↓ 2 callersMethodbool_value
deps/protobuf/src/google/protobuf/struct.pb.h:945
↓ 2 callersFunctionbroadcast
deps/pybind11/include/pybind11/numpy.h:1791
↓ 2 callersMethodbufferAddressField
Finds the address field within a direct {@link Buffer}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:370
↓ 2 callersMethodbufferInt32NoTag
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 callersMethodbufferPos
(long pos)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2009
↓ 2 callersFunctionbuild
(x, update, begin, end)
coremltools/converters/mil/mil/ops/tests/iOS18/test_tensor_transformation.py:73
↓ 2 callersMethodbuild
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 callersMethodbuild
Builds the message and returns it. @return the message
deps/protobuf/java/core/src/main/java/com/google/protobuf/SingleFieldBuilderV3.java:111
↓ 2 callersMethodbuildFieldMap
($desc)
deps/protobuf/php/tests/DescriptorsTest.php:246
↓ 2 callersMethodbuildFrom
(ThreadContext context, DynamicMessage dynamicMessage)
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMessage.java:768
↓ 2 callersFunctionbuildIndex
* 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 callersMethodbuildOneofMember
Builds info for a oneof member field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java:445
↓ 2 callersMethodbuildPartial
()
deps/protobuf/ruby/src/main/java/com/google/protobuf/jruby/SentinelOuterClass.java:408
↓ 2 callersMethodbuildPartial
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java:391
↓ 2 callersMethodbuilder
Create a builder for a {@code ParseInfoTree}. @return the builder
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormatParseInfoTree.java:146
↓ 2 callersFunctionbyte_offset_unsafe
deps/pybind11/include/pybind11/numpy.h:489
↓ 2 callersMethodbytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:975
↓ 2 callersMethodbytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:1512
↓ 2 callersMethodbytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:2031
↓ 2 callersMethodbytesWrittenToCurrentBuffer
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java:2584
↓ 2 callersMethodcachedSizeField
(Class<?> messageType, FieldDescriptor fd)
deps/protobuf/java/core/src/main/java/com/google/protobuf/DescriptorMessageInfoFactory.java:579
↓ 2 callersMethodcan_be_output
(self)
coremltools/converters/mil/input_types.py:81
↓ 2 callersMethodcan_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 callersFunctioncast_error_unable_to_convert_call_arg
deps/pybind11/include/pybind11/cast.h:1369
↓ 2 callersFunctioncast_to_framework_io_dtype
(var, is_output)
coremltools/converters/mil/backend/mil/helper.py:304
↓ 2 callersFunctionceil
(context, node)
coremltools/converters/mil/frontend/torch/ops.py:7075
↓ 2 callersFunctioncheck
deps/pybind11/include/pybind11/pytypes.h:303
↓ 2 callersMethodcheckArguments
(ExtensionRegistryLite extensionRegistry, ByteString bytes)
deps/protobuf/java/core/src/main/java/com/google/protobuf/LazyFieldLite.java:433
↓ 2 callersMethodcheckByteStringIsUtf8
(ByteString byteString)
deps/protobuf/java/core/src/main/java/com/google/protobuf/AbstractMessageLite.java:132
↓ 2 callersFunctioncheckCriticalTypeByteStringArray
* Checks whether a given object is an array of ByteString. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:396
↓ 2 callersFunctioncheckCriticalTypeStringArray
* Checks whether a given object is an array of string. * @param {*} values
deps/protobuf/js/experimental/runtime/internal/checks.js:590
↓ 2 callersMethodcheckFieldDescriptor
(FieldDescriptor field)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapEntry.java:198
↓ 2 callersMethodcheckIndex
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 callersFunctioncheckIsInternalMessage
* Checks if the object implements InternalMessage interface. * @param {?} obj * @return {!InternalMessage}
deps/protobuf/js/experimental/runtime/kernel/kernel.js:49
↓ 2 callersFunctioncheckMapEquals
* 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 callersFunctioncheckMapEquals
* 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 callersMethodcheckMessageInitialized
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 callersFunctioncheck_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 callersFunctioncheck_kw_only_arg
deps/pybind11/include/pybind11/attr.h:461
↓ 2 callersMethodcheck_spec_op_type
(model_path, expected_ops)
coremltools/test/ml_program/test_utils.py:1506
↓ 2 callersMethodcheck_update_prog
(prog, output_name)
coremltools/converters/mil/frontend/milproto/test_load.py:334
↓ 2 callersMethodcleanup
(self)
coremltools/models/ml_program/experimental/async_wrapper.py:150
↓ 2 callersMethodclearExtension
Clear an extension.
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java:1338
← previousnext →6,001–6,100 of 41,379, ranked by callers