mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
chore(tools): update API ignore list
This commit is contained in:
@@ -4,7 +4,7 @@ import { walk } from 'jsr:@std/fs@1.0.2';
|
|||||||
const PROJECT_ROOT = dirname(import.meta.dirname!);
|
const PROJECT_ROOT = dirname(import.meta.dirname!);
|
||||||
const DECODER = new TextDecoder('utf-8');
|
const DECODER = new TextDecoder('utf-8');
|
||||||
const SYMBOL_DEF_REGEX = /pub\s+([A-Za-z_][A-Za-z0-9_]+):/;
|
const SYMBOL_DEF_REGEX = /pub\s+([A-Za-z_][A-Za-z0-9_]+):/;
|
||||||
const SYMBOL_USAGE_REGEX = /ortsys!\[\s*(?:unsafe\s+)?([A-Za-z_][A-Za-z0-9_]+)/gm;
|
const SYMBOL_USAGE_REGEX = /ortsys!\[\s*(?:@ort:)?\s*(?:unsafe\s+)?([A-Za-z_][A-Za-z0-9_]+)/gm;
|
||||||
|
|
||||||
const IGNORED_SYMBOLS = new Set<string>([
|
const IGNORED_SYMBOLS = new Set<string>([
|
||||||
'KernelContext_GetScratchBuffer', // implemented in src/operator/kernel.rs but impl appears to be broken so ignoring
|
'KernelContext_GetScratchBuffer', // implemented in src/operator/kernel.rs but impl appears to be broken so ignoring
|
||||||
@@ -12,6 +12,7 @@ const IGNORED_SYMBOLS = new Set<string>([
|
|||||||
'RegisterCustomOpsUsingFunction',
|
'RegisterCustomOpsUsingFunction',
|
||||||
'SessionOptionsAppendExecutionProvider_CUDA', // we use V2
|
'SessionOptionsAppendExecutionProvider_CUDA', // we use V2
|
||||||
'SessionOptionsAppendExecutionProvider_TensorRT', // we use V2
|
'SessionOptionsAppendExecutionProvider_TensorRT', // we use V2
|
||||||
|
'SessionOptionsAppendExecutionProvider_OpenVINO', // we use V2
|
||||||
'GetValueType', // we get value types via GetTypeInfo -> GetOnnxTypeFromTypeInfo, which is equivalent
|
'GetValueType', // we get value types via GetTypeInfo -> GetOnnxTypeFromTypeInfo, which is equivalent
|
||||||
'SetLanguageProjection', // someday we shall have `ORT_PROJECTION_RUST`, but alas, today is not that day...
|
'SetLanguageProjection', // someday we shall have `ORT_PROJECTION_RUST`, but alas, today is not that day...
|
||||||
|
|
||||||
@@ -38,12 +39,18 @@ const IGNORED_SYMBOLS = new Set<string>([
|
|||||||
|
|
||||||
// non-use
|
// non-use
|
||||||
'HasValue',
|
'HasValue',
|
||||||
'GetExecutionProviderApi', // available via ort_sys for those who need it
|
|
||||||
'CreateCpuMemoryInfo',
|
'CreateCpuMemoryInfo',
|
||||||
'ReleaseMapTypeInfo', // neither map or sequence type infos ever get directly allocated, so im not sure why these exist
|
'ReleaseMapTypeInfo', // neither map or sequence type infos ever get directly allocated, so im not sure why these exist
|
||||||
'ReleaseSequenceTypeInfo',
|
'ReleaseSequenceTypeInfo',
|
||||||
'UpdateTensorRTProviderOptionsWithValue',
|
'UpdateTensorRTProviderOptionsWithValue',
|
||||||
'UpdateCUDAProviderOptionsWithValue'
|
'UpdateCUDAProviderOptionsWithValue',
|
||||||
|
'GetBoundOutputNames',
|
||||||
|
'GetTensorShapeElementCount', // calculatd by us
|
||||||
|
// string tensors have special extraction & aren't mutable
|
||||||
|
'GetStringTensorElementLength',
|
||||||
|
'GetStringTensorElement',
|
||||||
|
'FillStringTensorElement',
|
||||||
|
'GetResizedStringTensorElementBuffer',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const sysSymbols = new Set<string>();
|
const sysSymbols = new Set<string>();
|
||||||
|
|||||||
Reference in New Issue
Block a user