objc2_metal_performance_shaders_graph/generated/
MPSGraphCallOps.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// CallOp.
10#[cfg(all(feature = "MPSGraph", feature = "MPSGraphCore"))]
11impl MPSGraph {
12    extern_methods!(
13        #[cfg(feature = "MPSGraphTensor")]
14        /// Creates an operation which invokes another executable.
15        ///
16        /// - Parameters:
17        /// - symbolName: The unique identifier used to find the executable in the ``MPSGraphCompilationDescriptor.callables`` directory.
18        /// - inputTensors: The tensors which are passed as inputs to the executable being invoked.
19        /// - outputTypes: The expected return types of the executable being invoked.
20        /// - name: name of operation.
21        /// - Returns: An array of valid ``MPSGraphTensor`` objects representing the return tensors of the invoked executable.
22        #[unsafe(method(callSymbolName:inputTensors:outputTypes:name:))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn callSymbolName_inputTensors_outputTypes_name(
25            &self,
26            symbol_name: &NSString,
27            input_tensors: &NSArray<MPSGraphTensor>,
28            output_types: &NSArray<MPSGraphType>,
29            name: Option<&NSString>,
30        ) -> Retained<NSArray<MPSGraphTensor>>;
31    );
32}