MPSGraph_MPSGraphSparseOps.Sparse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Sparse(MPSGraph, MPSGraphCreateSparseOpDescriptor, MPSGraphTensor[], Int32[], String) | |
| Sparse(MPSGraph, MPSGraphSparseStorageType, MPSGraphTensor[], Int32[], MPSDataType, String) |
Sparse(MPSGraph, MPSGraphCreateSparseOpDescriptor, MPSGraphTensor[], Int32[], String)
[Foundation.Export("sparseTensorWithDescriptor:tensors:shape:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Sparse(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphCreateSparseOpDescriptor sparseDescriptor, MetalPerformanceShadersGraph.MPSGraphTensor[] inputTensorArray, int[] shape, string? name);
[<Foundation.Export("sparseTensorWithDescriptor:tensors:shape:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Sparse : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphCreateSparseOpDescriptor * MetalPerformanceShadersGraph.MPSGraphTensor[] * int[] * string -> MetalPerformanceShadersGraph.MPSGraphTensor
Parameters
- This
- MPSGraph
- sparseDescriptor
- MPSGraphCreateSparseOpDescriptor
- inputTensorArray
- MPSGraphTensor[]
- shape
- Int32[]
- name
- String
Returns
- Attributes
Applies to
Sparse(MPSGraph, MPSGraphSparseStorageType, MPSGraphTensor[], Int32[], MPSDataType, String)
[Foundation.Export("sparseTensorWithType:tensors:shape:dataType:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Sparse(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphSparseStorageType sparseStorageType, MetalPerformanceShadersGraph.MPSGraphTensor[] inputTensorArray, int[] shape, MetalPerformanceShaders.MPSDataType dataType, string? name);
[<Foundation.Export("sparseTensorWithType:tensors:shape:dataType:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Sparse : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphSparseStorageType * MetalPerformanceShadersGraph.MPSGraphTensor[] * int[] * MetalPerformanceShaders.MPSDataType * string -> MetalPerformanceShadersGraph.MPSGraphTensor
Parameters
- This
- MPSGraph
- sparseStorageType
- MPSGraphSparseStorageType
- inputTensorArray
- MPSGraphTensor[]
- shape
- Int32[]
- dataType
- MPSDataType
- name
- String
Returns
- Attributes