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
↓ 3 callers
Function
SortFieldsByNumber
Sort the fields of the given Descriptor by number into a new[]'d array and return it. The caller should delete the returned array.
deps/protobuf/src/google/protobuf/compiler/java/java_helpers.cc:895
↓ 3 callers
Method
SpaceUsed
deps/protobuf/src/google/protobuf/arena.cc:171
↓ 3 callers
Method
SpaceUsedExcludingSelf
deps/protobuf/src/google/protobuf/extension_set_heavy.cc:409
↓ 3 callers
Method
Strdup
deps/protobuf/src/google/protobuf/descriptor.cc:1770
↓ 3 callers
Function
StrictUtf8Check
deps/protobuf/src/google/protobuf/wire_format.cc:413
↓ 3 callers
Function
StringBuilder_PrintMsgval
deps/protobuf/ruby/ext/google/protobuf_c/protobuf.c:123
↓ 3 callers
Function
StringToBase64
deps/protobuf/src/google/protobuf/compiler/csharp/csharp_helpers.cc:466
↓ 3 callers
Function
StripSuffixString
deps/protobuf/src/google/protobuf/stubs/strutil.h:144
↓ 3 callers
Function
Subscript
deps/protobuf/python/google/protobuf/pyext/repeated_composite_container.cc:227
↓ 3 callers
Method
Swap
deps/protobuf/src/google/protobuf/reflection_internal.h:234
↓ 3 callers
Function
Syntax_descriptor
(__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
deps/protobuf/src/google/protobuf/type.pb.cc:324
↓ 3 callers
Function
TableEntryIsEmpty
deps/protobuf/src/google/protobuf/map.h:263
↓ 3 callers
Function
TcParserName
deps/protobuf/src/google/protobuf/compiler/cpp/cpp_parse_function_generator.cc:84
↓ 3 callers
Method
TestFactory2
deps/pybind11/tests/test_factory_constructors.cpp:37
↓ 3 callers
Method
TestOneof
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs:20495
↓ 3 callers
Method
TestPackedExtensions
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs:25492
↓ 3 callers
Method
TestProto3Optional
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestProto3Optional.cs:106
↓ 3 callers
Method
TestUnpackedTypes
()
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs:24946
↓ 3 callers
Method
ToByteArray
()
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/WriteMessagesBenchmark.cs:160
↓ 3 callers
Method
ToBytes
deps/protobuf/src/google/protobuf/util/internal/datapiece.cc:257
↓ 3 callers
Method
ToDouble
deps/protobuf/src/google/protobuf/util/internal/datapiece.cc:164
↓ 3 callers
Method
ToFieldMask
Converts the tree to a FieldMask.
deps/protobuf/python/google/protobuf/internal/well_known_types.py:615
↓ 3 callers
Method
ToFloat
deps/protobuf/src/google/protobuf/util/internal/datapiece.cc:184
↓ 3 callers
Method
ToJson
<summary> Converts a duration specified in seconds/nanoseconds to a string. </summary> <remarks> If the value is a normalized duration in the range de
deps/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/DurationPartial.cs:197
↓ 3 callers
Method
ToJsonString
Converts Duration to string format. Returns: A string converted from self. The string format will contains 3, 6, or 9 fractional digi
deps/protobuf/python/google/protobuf/internal/well_known_types.py:258
↓ 3 callers
Function
ToLower
deps/protobuf/src/google/protobuf/compiler/js/js_generator.cc:341
↓ 3 callers
Function
ToUpper
Note: I distrust ctype.h due to locales.
deps/protobuf/src/google/protobuf/descriptor.cc:373
↓ 3 callers
Method
TreatAsMap
deps/protobuf/src/google/protobuf/util/message_differencer.cc:390
↓ 3 callers
Method
TreatAsSet
deps/protobuf/src/google/protobuf/util/message_differencer.cc:365
↓ 3 callers
Method
Trim
deps/protobuf/src/google/protobuf/io/coded_stream.cc:704
↓ 3 callers
Method
Truncate
deps/protobuf/src/google/protobuf/repeated_field.h:956
↓ 3 callers
Function
TypeInfo_Eq
deps/protobuf/php/ext/google/protobuf/def.h:84
↓ 3 callers
Function
UInt64ByteSize
(field_number, uint64)
deps/protobuf/python/google/protobuf/internal/wire_format.py:139
↓ 3 callers
Function
UTF8SpnStructurallyValid
deps/protobuf/src/google/protobuf/stubs/structurally_valid.cc:564
↓ 3 callers
Function
UniqueName
deps/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.h:236
↓ 3 callers
Function
UnknownError
deps/protobuf/src/google/protobuf/stubs/status.cc:255
↓ 3 callers
Method
UnsafeArenaReleaseLast
deps/protobuf/src/google/protobuf/extension_set.cc:897
↓ 3 callers
Method
UnsafeArenaSwap
deps/protobuf/src/google/protobuf/repeated_field.h:834
↓ 3 callers
Function
UseBrokenPresenceSemantics
Used inside Google only -- do not remove.
deps/protobuf/src/google/protobuf/compiler/js/js_generator.cc:949
↓ 3 callers
Function
ValueEq
* ValueEq() */
deps/protobuf/php/ext/google/protobuf/message.c:172
↓ 3 callers
Function
VersionString
deps/protobuf/src/google/protobuf/stubs/common.cc:95
↓ 3 callers
Method
WriteBytesMaybeAliased
deps/protobuf/src/google/protobuf/wire_format_lite.cc:505
↓ 3 callers
Function
WriteDeprecatedJavadoc
deps/protobuf/src/google/protobuf/compiler/java/java_doc_comment.cc:190
↓ 3 callers
Function
WriteLengthDelimited
deps/protobuf/src/google/protobuf/parse_context.cc:314
↓ 3 callers
Method
WriteRawMaybeAliased
deps/protobuf/src/google/protobuf/io/coded_stream.h:1749
↓ 3 callers
Method
WriteRawVarint64
(ulong value)
deps/protobuf/csharp/src/Google.Protobuf/CodedOutputStream.cs:502
↓ 3 callers
Method
WriteTo
(pb::CodedOutputStream output)
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/BenchmarkMessage1Proto3.cs:758
↓ 3 callers
Method
WriteTo
(pb::CodedOutputStream output)
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmarkMessages.cs:2195
↓ 3 callers
Method
WriteToCodedOutputStream_PreAllocatedBuffer
()
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/WriteMessagesBenchmark.cs:162
↓ 3 callers
Method
WriteToSpan_PreAllocatedBuffer
()
deps/protobuf/csharp/src/Google.Protobuf.Benchmarks/WriteMessagesBenchmark.cs:169
↓ 3 callers
Method
WriteVarint32SignExtended
deps/protobuf/src/google/protobuf/io/coded_stream.h:1643
↓ 3 callers
Function
Wyhash
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c:2180
↓ 3 callers
Method
_CheckRaises
This method checks if the exception type and message are as expected.
deps/protobuf/python/google/protobuf/internal/reflection_test.py:2866
↓ 3 callers
Function
_ConvertScalarFieldValue
Convert a single scalar field value. Args: value: A scalar value to convert the scalar field value. field: The descriptor of the field to c
deps/protobuf/python/google/protobuf/json_format.py:701
↓ 3 callers
Function
_CreateDescriptorPool
Create a Python DescriptorPool object, but does not fill the "pool" attribute.
deps/protobuf/python/google/protobuf/pyext/descriptor_pool.cc:98
↓ 3 callers
Method
_FieldToJsonObject
Converts field value according to Proto3 JSON Specification.
deps/protobuf/python/google/protobuf/json_format.py:272
↓ 3 callers
Method
_FindExtensionByName
Tries to find a known extension with the specified name. Args: name: Extension full name. Returns: Extension field descriptor.
deps/protobuf/python/google/protobuf/internal/extension_dict.py:172
↓ 3 callers
Method
_FindExtensionByNumber
Tries to find a known extension with the field number. Args: number: Extension field number. Returns: Extension field descriptor
deps/protobuf/python/google/protobuf/internal/extension_dict.py:183
↓ 3 callers
Function
_GetItemByKey
Returns the C++ item descriptor for a given Python key. When the descriptor is found, return true and set *item. When the descriptor is not found, ret
deps/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:162
↓ 3 callers
Method
_GetSerializedFileDescriptor
Get a serialized representation of a test FileDescriptorProto. Args: name: All calls to this must use a unique message name, to avoid
deps/protobuf/python/google/protobuf/internal/reflection_test.py:3260
↓ 3 callers
Method
_MessageToJsonObject
Converts message to an object according to Proto3 JSON Specification.
deps/protobuf/python/google/protobuf/json_format.py:197
↓ 3 callers
Function
_PropertyName
Returns the name of the public property attribute which clients can use to get and (in some cases) set the value of a protocol message field. A
deps/protobuf/python/google/protobuf/internal/python_message.py:216
↓ 3 callers
Method
_Reset
Reset the state of this mock to record mode with an empty queue.
deps/protobuf/python/mox.py:349
↓ 3 callers
Function
_VerifyExtensionHandle
Verify that the given extension handle is valid.
deps/protobuf/python/google/protobuf/internal/extension_dict.py:38
↓ 3 callers
Method
__api_GET
(self, endpoint, print_info=None, paginated=False)
mlmodel/docs/readme_session.py:48
↓ 3 callers
Method
__api_POST
(self, endpoint, data, print_info=None)
mlmodel/docs/readme_session.py:71
↓ 3 callers
Method
__api_call
(self, api_func, endpoint, print_info, data=None)
mlmodel/docs/readme_session.py:31
↓ 3 callers
Method
__class__
Return the class that is being mocked.
deps/protobuf/python/mox.py:504
↓ 3 callers
Method
__getstate__
Support the pickle protocol.
deps/protobuf/python/google/protobuf/message.py:391
↓ 3 callers
Method
__init__
(self, model: _torch.nn.Module, config: _Optional[_OptimizationConfig] = None)
coremltools/optimize/torch/base_model_optimizer.py:58
↓ 3 callers
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size: _size_1_t, s
coremltools/optimize/torch/quantization/modules/conv_transpose.py:155
↓ 3 callers
Method
__init__
(self, conv: _nn.Module, bn: _nn.Module)
coremltools/optimize/torch/quantization/modules/fused_modules.py:15
↓ 3 callers
Method
__init__
( self, # ConvTranspose1d args in_channels: int, out_channels: int, ke
coremltools/optimize/torch/quantization/modules/conv_transpose_fused.py:250
↓ 3 callers
Method
__init__
(self)
coremltools/test/ml_program/test_utils.py:1519
↓ 3 callers
Method
__init__
The basic shape class to be set in :py:class:`InputType`. Parameters ---------- shape: list of (int), symbolic value
coremltools/converters/mil/input_types.py:447
↓ 3 callers
Method
__init__
sym_type (builtin type) sym_val (builtin value) op (Operation) op_output_idx (int)
coremltools/converters/mil/mil/var.py:97
↓ 3 callers
Method
__init__
(self, op_selector=None)
coremltools/converters/mil/mil/passes/defs/quantization.py:540
↓ 3 callers
Method
__init__
(self)
coremltools/converters/mil/frontend/torch/test/test_torch_quantization_ops.py:286
↓ 3 callers
Method
__init__
( self, device: Device, compute_plan: ComputePlan, model_struc
coremltools/models/ml_program/experimental/compute_plan_utils.py:121
↓ 3 callers
Method
__init__
Initialize an AppSession. Parameters ---------- device : Device The device on which the application is r
coremltools/models/ml_program/experimental/remote_device.py:455
↓ 3 callers
Method
__init__
(self, *args)
deps/pybind11/tests/test_factory_constructors.py:190
↓ 3 callers
Method
__init__
Args: parent_message: The message whose _Modified() method we should call when we receive Modified() messages.
deps/protobuf/python/google/protobuf/internal/python_message.py:1489
↓ 3 callers
Function
_avg_pool
(context, node, inputs)
coremltools/converters/mil/frontend/torch/ops.py:5753
↓ 3 callers
Function
_calculate_dft_matrix
The core issue is how to derive the DFT matrix. As the DFT matrix is consist of different powers of `w`, where w=e^(2pi/N i), we need to sepa
coremltools/converters/mil/mil/passes/defs/lower_complex_dialect_ops.py:130
↓ 3 callers
Function
_check_fitted
Simple wrapper to check if the KNeighborsClassifier has been fitted.
coremltools/converters/sklearn/_k_neighbors_classifier.py:187
↓ 3 callers
Method
_check_tree_model
(self, spec, inputType, outputType, n_out)
coremltools/test/sklearn_tests/test_io_types.py:79
↓ 3 callers
Method
_check_valid
(self)
deps/protobuf/python/google/protobuf/internal/containers.py:552
↓ 3 callers
Method
_construct_test_model
()
coremltools/converters/mil/frontend/torch/test/test_torch_conversion_api.py:3098
↓ 3 callers
Function
_convert_and_retrieve_exported_program_op_mapping
Converts an ``ExportedProgram`` to a Core ML model and returns the mapping information mapping between `torch.fx.Node` and their correspo
coremltools/models/ml_program/experimental/torch/debugging_utils.py:1161
↓ 3 callers
Method
_convert_multifunction_prog
(prog)
coremltools/test/ml_program/test_utils.py:78
↓ 3 callers
Function
_convert_pool
(const_context, builder, op, mode, exclude_padding_from_average=True)
coremltools/converters/mil/backend/nn/op_mapping.py:77
↓ 3 callers
Function
_copy_input_data
(input_data)
coremltools/converters/mil/frontend/torch/test/testing_utils.py:91
↓ 3 callers
Method
_copy_metadata
Populate meta data from old var to new var
coremltools/converters/mil/mil/block.py:741
↓ 3 callers
Method
_create_fake_quantize_partial_from_kwargs
( cls, is_weight: bool, observer_cls: _aoquant.ObserverBase, dtype: _torch.dty
coremltools/optimize/torch/quantization/_qconfig_mapping.py:68
↓ 3 callers
Function
_create_mlpackage
Parameters ---------- proto_spec The proto spec of the model. weights_dir Copy weights from this path to the ``mlpa
coremltools/models/utils.py:91
↓ 3 callers
Method
_deduplicate_const_across_functions
When there are duplicated consts across functions, we cannot create a common const op to be shared. Instead, we set the weight_id to
coremltools/converters/mil/mil/passes/defs/cleanup/const_deduplication.py:79
↓ 3 callers
Method
_enable_fake_palett_impl
(module: _torch.nn.Module, flag: bool)
coremltools/optimize/torch/palettization/palettizer.py:384
↓ 3 callers
Function
_expand_dim
(builder, node_name, input_name, axes)
coremltools/converters/mil/backend/nn/op_mapping.py:256
↓ 3 callers
Method
_find_reduced_shape
(self)
coremltools/converters/mil/mil/ops/defs/iOS15/reduction.py:83
↓ 3 callers
Method
_find_transpose_compliment
return the permutation value that when applied will reverse the effect of the given permutation. e.g.: if perm == (1, 2, 3,
coremltools/converters/mil/mil/passes/defs/optimize_repeat_ops.py:671
← previous
next →
4,001–4,100 of 41,379, ranked by callers