Share via


IMTLTensor Interface

Definition

This interface represents the Objective-C protocol MTLTensor.

[Foundation.Protocol(BackwardsCompatibleCodeGeneration=false, Name="MTLTensor", WrapperType=typeof(Metal.MTLTensorWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ReplaceSliceOrigin", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(Metal.MTLTensorExtents), typeof(Metal.MTLTensorExtents), typeof(System.IntPtr), typeof(Metal.MTLTensorExtents) }, Selector="replaceSliceOrigin:sliceDimensions:withBytes:strides:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetBytes", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(System.IntPtr), typeof(Metal.MTLTensorExtents), typeof(Metal.MTLTensorExtents), typeof(Metal.MTLTensorExtents) }, Selector="getBytes:strides:fromSliceOrigin:sliceDimensions:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="gpuResourceID", IsProperty=true, IsRequired=true, IsStatic=false, Name="GpuResourceId", PropertyType=typeof(Metal.MTLResourceId), Selector="gpuResourceID")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="buffer", IsProperty=true, IsRequired=true, IsStatic=false, Name="Buffer", PropertyType=typeof(Metal.IMTLBuffer), Selector="buffer")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="bufferOffset", IsProperty=true, IsRequired=true, IsStatic=false, Name="BufferOffset", PropertyType=typeof(System.UIntPtr), Selector="bufferOffset")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="strides", IsProperty=true, IsRequired=true, IsStatic=false, Name="Strides", PropertyType=typeof(Metal.MTLTensorExtents), Selector="strides")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="dimensions", IsProperty=true, IsRequired=true, IsStatic=false, Name="Dimensions", PropertyType=typeof(Metal.MTLTensorExtents), Selector="dimensions")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="dataType", IsProperty=true, IsRequired=true, IsStatic=false, Name="DataType", PropertyType=typeof(Metal.MTLTensorDataType), Selector="dataType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="usage", IsProperty=true, IsRequired=true, IsStatic=false, Name="Usage", PropertyType=typeof(Metal.MTLTensorUsage), Selector="usage")]
public interface IMTLTensor : IDisposable, Metal.IMTLResource
[<Foundation.Protocol(BackwardsCompatibleCodeGeneration=false, Name="MTLTensor", WrapperType=typeof(Metal.MTLTensorWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ReplaceSliceOrigin", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(Metal.MTLTensorExtents), typeof(Metal.MTLTensorExtents), typeof(System.IntPtr), typeof(Metal.MTLTensorExtents) }, Selector="replaceSliceOrigin:sliceDimensions:withBytes:strides:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetBytes", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(System.IntPtr), typeof(Metal.MTLTensorExtents), typeof(Metal.MTLTensorExtents), typeof(Metal.MTLTensorExtents) }, Selector="getBytes:strides:fromSliceOrigin:sliceDimensions:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="gpuResourceID", IsProperty=true, IsRequired=true, IsStatic=false, Name="GpuResourceId", PropertyType=typeof(Metal.MTLResourceId), Selector="gpuResourceID")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="buffer", IsProperty=true, IsRequired=true, IsStatic=false, Name="Buffer", PropertyType=typeof(Metal.IMTLBuffer), Selector="buffer")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="bufferOffset", IsProperty=true, IsRequired=true, IsStatic=false, Name="BufferOffset", PropertyType=typeof(System.UIntPtr), Selector="bufferOffset")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="strides", IsProperty=true, IsRequired=true, IsStatic=false, Name="Strides", PropertyType=typeof(Metal.MTLTensorExtents), Selector="strides")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="dimensions", IsProperty=true, IsRequired=true, IsStatic=false, Name="Dimensions", PropertyType=typeof(Metal.MTLTensorExtents), Selector="dimensions")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="dataType", IsProperty=true, IsRequired=true, IsStatic=false, Name="DataType", PropertyType=typeof(Metal.MTLTensorDataType), Selector="dataType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="usage", IsProperty=true, IsRequired=true, IsStatic=false, Name="Usage", PropertyType=typeof(Metal.MTLTensorUsage), Selector="usage")>]
type IMTLTensor = interface
    interface INativeObject
    interface IDisposable
    interface IMTLAllocation
    interface IMTLResource
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
AllocatedSize

Returns the allocated size of the resource.

(Inherited from IMTLResource)
Buffer
BufferOffset
CpuCacheMode (Inherited from IMTLResource)
DataType
Device (Inherited from IMTLResource)
Dimensions
GpuResourceId
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
HazardTrackingMode (Inherited from IMTLResource)
Heap

Returns the heap that sub-allocated the resource.

(Inherited from IMTLResource)
HeapOffset (Inherited from IMTLResource)
IsAliasable

Returns a Boolean value that tells whether future sub-allocations can alias the resource's memory.

(Inherited from IMTLResource)
Label (Inherited from IMTLResource)
ResourceOptions (Inherited from IMTLResource)
StorageMode

Returns a description of the location and permissions of the resource.

(Inherited from IMTLResource)
Strides
Usage

Methods

Name Description
GetBytes(IntPtr, MTLTensorExtents, MTLTensorExtents, MTLTensorExtents)
MakeAliasable()

Makes the resource aliasable.

(Inherited from IMTLResource)
ReplaceSliceOrigin(MTLTensorExtents, MTLTensorExtents, IntPtr, MTLTensorExtents)
SetOwnerWithIdentity(UInt32) (Inherited from IMTLResource)
SetPurgeableState(MTLPurgeableState) (Inherited from IMTLResource)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to