MCPcopy Create free account

hub / github.com/apple/coremltools / functions

Functions41,379 in github.com/apple/coremltools

↓ 8 callersFunctionas_windows_path
deps/protobuf/src/google/protobuf/io/io_win32.cc:215
↓ 8 callersMethodassertAllExtensionsSet
Assert (using {@code junit.framework.Assert}} that all extensions of {@code message} are set to the values assigned by {@code setAllExtensions}.
deps/protobuf/java/core/src/test/java/com/google/protobuf/TestUtil.java:1406
↓ 8 callersMethodassertEqualBytes
(OutputType outputType, byte[] a, byte[] b)
deps/protobuf/java/core/src/test/java/com/google/protobuf/CodedOutputStreamTest.java:761
↓ 8 callersMethodassertMapValuesSet
(TestMapOrBuilder message)
deps/protobuf/java/core/src/test/java/com/google/protobuf/MapForProto2Test.java:142
↓ 8 callersMethodassertNotEqual
(Object unexpected, Object actual)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LazyFieldLiteTest.java:261
↓ 8 callersFunctionassert_spec_output_image_type
(spec, expected_feature_type)
coremltools/converters/mil/testing_utils.py:842
↓ 8 callersMethodavailable
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/CodedInputStreamTest.java:1040
↓ 8 callersMethodbufferUInt32NoTag
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:2298
↓ 8 callersFunctionbuildBasicNearestNeighborClassifier
mlmodel/tests/ModelCreationUtils.cpp:297
↓ 8 callersFunctionbuildEmptyPipelineModelWithStringOutput
mlmodel/tests/ModelCreationUtils.cpp:370
↓ 8 callersMethodbytes
Helper to construct a ByteString from a String containing only 8-bit characters. The characters are converted directly to bytes, not encoded using UTF
deps/protobuf/java/core/src/test/java/com/google/protobuf/TextFormatTest.java:279
↓ 8 callersFunctioncast
deps/pybind11/include/pybind11/cast.h:1173
↓ 8 callersMethodchangeValue
(LazyFieldLite lazyField)
deps/protobuf/java/core/src/test/java/com/google/protobuf/LazyFieldLiteTest.java:254
↓ 8 callersFunctioncheckCriticalTypeArray
* Checks whether a given object is an array. * @param {*} value * @return {!Array<*>}
deps/protobuf/js/experimental/runtime/internal/checks.js:342
↓ 8 callersFunctioncheckCriticalTypeSignedInt32
* Checks whether a given object is a number. * @param {*} value * @throws {!Error} If the value is not signed int32 and the check state is * cr
deps/protobuf/js/experimental/runtime/internal/checks.js:463
↓ 8 callersFunctioncheckCriticalTypeSignedInt64
* Ensures that value is a long instance. * @param {*} value * @throws {!Error} If the value is not a long instance and check state is * critica
deps/protobuf/js/experimental/runtime/internal/checks.js:508
↓ 8 callersMethodcheckMutable
@throws UnsupportedOperationException if {@link #makeImmutable()} has has been called.
deps/protobuf/java/core/src/main/java/com/google/protobuf/SmallSortedMap.java:367
↓ 8 callersMethodcheckRecursionLimit
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:198
↓ 8 callersFunctioncheckState
* Ensures the truth of an expression involving the state of the calling * instance, but not involving any parameters to the calling method. * * @pa
deps/protobuf/js/experimental/runtime/internal/checks.js:121
↓ 8 callersMethodcluster_weights
( cls, model: _torch.nn.Module, config: _Union[_Dict[str, _Dict[str, KMeansConfig]], K
coremltools/optimize/torch/_utils/k_means.py:924
↓ 8 callersFunctioncount_unique_params
Returns number of unique parameters in the same tensor. Set a defaulted absolute tolerance, so that very close values can be treated as ident
coremltools/test/optimize/torch/utils.py:89
↓ 8 callersMethodcreate
Create a location. @param line the starting line number @param column the starting column number @return a {@code ParseLocation}
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormatParseLocation.java:52
↓ 8 callersFunctioncreate_scalar_value
Return TensorValue (since there's no ScalarValue)
coremltools/converters/mil/backend/mil/helper.py:167
↓ 8 callersFunctionct_convert
Overloaded ct.convert function with the only difference being in the argument `convert_to` which in this overloaded call accepts a tuple of (
coremltools/converters/mil/testing_utils.py:525
↓ 8 callersMethodcurrentRemaining
Try to get the number of remaining bytes in {@code currentByteBuffer}. @return the number of remaining bytes in {@code currentByteBuffer}
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:3960
↓ 8 callersMethoddecode
(_ request: DeviceCtlSocket.Request)
coremltools/modelrunner/ModelRunner/ModelService.swift:986
↓ 8 callersMethoddecodeBytes
Decodes a bytes value.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ArrayDecoders.java:216
↓ 8 callersMethoddecodeUtf8
Decodes the given UTF-8 portion of the {@link ByteBuffer} into a {@link String}. @throws InvalidProtocolBufferException if the input is not valid UTF
deps/protobuf/java/core/src/main/java/com/google/protobuf/Utf8.java:328
↓ 8 callersFunctiondup2
deps/protobuf/src/google/protobuf/io/io_win32.cc:347
↓ 8 callersMethodencode
(CharSequence in, byte[] out, int offset, int length)
deps/protobuf/java/core/src/main/java/com/google/protobuf/Utf8.java:292
↓ 8 callersMethodencodeZigZag32
Encode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers into values that can be efficiently encoded with varint. (Otherwise, negative val
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:898
↓ 8 callersMethodencodeZigZag64
Encode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers into values that can be efficiently encoded with varint. (Otherwise, negative val
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:912
↓ 8 callersMethodensureExtensionsIsMutable
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java:1218
↓ 8 callersMethodescapingNonAscii
Return a new Printer instance with the specified escape mode. @param escapeNonAscii If true, the new Printer will escape non-ASCII characters (this i
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:316
↓ 8 callersMethodexpectFields
(TestMessage $m)
deps/protobuf/php/tests/test_base.php:44
↓ 8 callersFunctionexport_torch_model_to_frontend
( model, input_data, frontend, use_scripting=False, torch_export_dynamic_shapes=None, )
coremltools/converters/mil/frontend/torch/test/testing_utils.py:188
↓ 8 callersFunctionextract_submodel
This utility function lets you extract a submodel from a Core ML model. For a neural network model, the function extracts only in-memory Cor
coremltools/converters/mil/debugging_utils.py:22
↓ 8 callersMethodfieldOrder
Indicates the order in which the fields are written by this {@link Writer}.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Writer.java:51
↓ 8 callersFunctionflat_begin
deps/protobuf/src/google/protobuf/extension_set.h:893
↓ 8 callersFunctionflat_end
deps/protobuf/src/google/protobuf/extension_set.h:901
↓ 8 callersMethodgetActualClassName
(Object object)
deps/protobuf/java/core/src/test/java/com/google/protobuf/NioByteStringTest.java:74
↓ 8 callersMethodgetData
()
deps/protobuf/php/src/Google/Protobuf/Internal/RawInputStream.php:45
↓ 8 callersMethodgetDecodedValue
* Returns the cached decoded value. The value needs to be set when this * method is called. * @return {T}
deps/protobuf/js/experimental/runtime/kernel/field.js:147
↓ 8 callersMethodgetDefaultInstance
Get an empty {@code UnknownFieldSetLite}. <p>For use by generated code only.
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java:60
↓ 8 callersMethodgetDefaultValue
Returns the default value of the extension field.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ExtensionLite.java:51
↓ 8 callersMethodgetDescriptor
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java:1807
↓ 8 callersMethodgetFieldBuilder
Get a nested builder instance for the given field. <p>Normally, we hold a reference to the immutable message object for the message type field. Some
deps/protobuf/java/core/src/main/java/com/google/protobuf/Message.java:179
↓ 8 callersMethodgetIndexArray
* Returns the array of IndexEntry. * @return {?Array<!IndexEntry>}
deps/protobuf/js/experimental/runtime/kernel/field.js:118
↓ 8 callersMethodgetLong
(Object target, long offset)
deps/protobuf/java/core/src/main/java/com/google/protobuf/UnsafeUtil.java:135
↓ 8 callersMethodgetMessageTypes
Get a list of top-level message types declared in this file.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:134
↓ 8 callersMethodgetNumber
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/FieldSet.java:57
↓ 8 callersMethodgetOneofFieldDescriptor
Obtains the FieldDescriptor if the given oneof is set. Returns null if no field is set.
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageReflection.java:290
↓ 8 callersMethodgetStartIndex
* @param {!IndexEntry} indexEntry * @return {number}
deps/protobuf/js/experimental/runtime/kernel/field.js:80
↓ 8 callersMethodget_module_config
( self, name: str, module: _torch.nn.Module )
coremltools/optimize/torch/optimization_config.py:83
↓ 8 callersMethodhas_json_name
deps/protobuf/src/google/protobuf/descriptor.pb.h:10409
↓ 8 callersMethodhas_presence
deps/protobuf/src/google/protobuf/descriptor.h:2302
↓ 8 callersMethodindent
()
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java:620
↓ 8 callersMethodinternalGetKernel
* @return {!Kernel} * @override
deps/protobuf/js/experimental/runtime/kernel/message_set.js:280
↓ 8 callersMethodinvalidEndTag
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java:128
↓ 8 callersMethodisFieldPresent
( T message, int pos, int presenceFieldOffset, int presenceField, int presenceMask)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MessageSchema.java:5794
↓ 8 callersMethodisModifiable
Returns whether this list can be modified via the publicly accessible {@link List} methods.
deps/protobuf/java/core/src/main/java/com/google/protobuf/Internal.java:581
↓ 8 callersFunctionis_bool
(t)
coremltools/converters/mil/mil/types/type_bool.py:48
↓ 8 callersFunctionis_per_channel_quant
Returns True if provided qscheme is for per-channel quantization. Otherwise returns False.
coremltools/optimize/torch/quantization/_utils.py:28
↓ 8 callersFunctionis_string
! @brief return whether value is a string This function returns true if and only if the JSON value is a string. @return `true` if type i
deps/nlohmann/json.hpp:19477
↓ 8 callersMethodisinf
(val)
deps/protobuf/python/google/protobuf/internal/generator_test.py:94
↓ 8 callersMethoditemsize
deps/pybind11/include/pybind11/numpy.h:689
↓ 8 callersFunctionloss_fn
(model, data)
coremltools/test/optimize/torch/test_utils/test_report_utils.py:295
↓ 8 callersMethodmarkDirty
A builder becomes dirty whenever a field is modified -- including fields in nested builders -- and becomes clean when build() is called. Thus, when a
deps/protobuf/java/core/src/main/java/com/google/protobuf/AbstractMessage.java:78
↓ 8 callersMethodndim
Number of dimensions
deps/pybind11/include/pybind11/numpy.h:934
↓ 8 callersMethodnewCodedInput
Creates a {@link CodedInputStream} which can be used to read the bytes. Using this is often more efficient than creating a {@link CodedInputStream} th
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:962
↓ 8 callersMethodnormalizedDuration
(long seconds, int nanos)
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/Durations.java:463
↓ 8 callersMethodoutdent
()
deps/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java:622
↓ 8 callersMethodoutput_type
deps/protobuf/src/google/protobuf/descriptor.cc:7986
↓ 8 callersMethodparse
Parse a text-format message from {@code input}. @return the parsed message, guaranteed initialized
deps/protobuf/java/core/src/main/java/com/google/protobuf/TextFormat.java:1463
↓ 8 callersFunctionprint_constr_details
deps/pybind11/tests/constructor_stats.h:271
↓ 8 callersMethodreadFrom
Completely reads the given stream's bytes into a {@code ByteString}, blocking if necessary until all bytes are read through to the end of the stream.
deps/protobuf/java/core/src/main/java/com/google/protobuf/ByteString.java:486
↓ 8 callersMethodreadObject
Magic method that lets us override deserialization behavior.
deps/protobuf/java/core/src/main/java/com/google/protobuf/NioByteString.java:68
↓ 8 callersMethodreadUint32
(&$input, &$value)
deps/protobuf/php/src/Google/Protobuf/Internal/GPBWire.php:180
↓ 8 callersMethodremaining
()
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2005
↓ 8 callersMethodremove_passes
Removes all passes with specific name.
coremltools/converters/mil/mil/passes/pass_pipeline.py:346
↓ 8 callersMethodrequirePosition
(int expectedPosition)
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStreamReader.java:1328
↓ 8 callersMethodsetKey
(K key)
deps/protobuf/java/core/src/main/java/com/google/protobuf/MapEntry.java:270
↓ 8 callersMethodsetLower
mlmodel/src/LayerShapeConstraints.cpp:418
↓ 8 callersMethodsetMessage
Sets a message for the field replacing any existing value. @param message the message to set @return the builder
deps/protobuf/java/core/src/main/java/com/google/protobuf/SingleFieldBuilder.java:159
↓ 8 callersMethodsetNullValue
* Represents a null value. * * Generated from protobuf field <code>.google.protobuf.NullValue null_value = 1;</code> * @param int $var
deps/protobuf/php/src/Google/Protobuf/Value.php:72
↓ 8 callersMethodsetObject
modelpackage/src/utils/JsonMap.cpp:93
↓ 8 callersMethodsetTypeUrl
* A URL/resource name that uniquely identifies the type of the serialized * protocol buffer message. This string must contain at least * one
deps/protobuf/php/src/Google/Protobuf/Any.php:219
↓ 8 callersFunctionset_error
deps/pybind11/include/pybind11/pytypes.h:346
↓ 8 callersFunctionset_transform_interface_params
Common utilities to set transform interface params.
coremltools/models/_interface_management.py:171
↓ 8 callersMethodsetup
()
deps/protobuf/java/core/src/test/java/com/google/protobuf/ParseExceptionsTest.java:64
↓ 8 callersFunctionsetupStateFeature
mlmodel/tests/InterfaceTests.cpp:30
↓ 8 callersFunctionslice
(context, node)
coremltools/converters/mil/frontend/torch/ops.py:5941
↓ 8 callersFunctionsymtab_alloc
deps/protobuf/php/ext/google/protobuf/php-upb.c:5743
↓ 8 callersFunctionsymtab_alloc
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:5358
↓ 8 callersMethodto_proto
deps/protobuf/ruby/lib/google/protobuf/message_exts.rb:47
↓ 8 callersFunctiontorch_model
()
coremltools/converters/mil/frontend/torch/test/test_torch_conversion_api.py:69
↓ 8 callersFunctionunsafe_elements
Return pointer to elements array if it exists otherwise either null or a invalid pointer is returned. This only happens for empty repeated fields, whe
deps/protobuf/src/google/protobuf/repeated_field.h:361
↓ 8 callersFunctionupb_arena_new
deps/protobuf/php/ext/google/protobuf/php-upb.h:489
↓ 8 callersFunctionupb_array_append
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:6895
↓ 8 callersFunctionupb_array_size
deps/protobuf/php/ext/google/protobuf/php-upb.c:7260
← previousnext →1,701–1,800 of 41,379, ranked by callers