Share via


IMLCustomLayer 인터페이스

정의

사용자 지정 모델 계층에 필요한 메서드를 정의하는 인터페이스입니다.

[Foundation.Protocol(Name="MLCustomLayer", WrapperType=typeof(CoreML.MLCustomLayerWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, 2, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IMLCustomLayer : IDisposable, ObjCRuntime.INativeObject
type IMLCustomLayer = interface
    interface INativeObject
    interface IDisposable
특성
구현

속성

Handle

관리되지 않는 개체 표현에 대한 핸들(포인터)입니다.

(다음에서 상속됨 INativeObject)

메서드

EvaluateOnCpu(MLMultiArray[], MLMultiArray[], NSError)

CPU를 사용하여 계산을 수행하도록 를 기반으로 설정합니다.

GetOutputShapes(NSArray[], NSError)

출력 텐서의 차원을 설명하는 숫자 배열로 출력 데이터 셰이프를 검색합니다.

SetWeightData(NSData[], NSError)

레이어의 내부 가중치를 설정합니다.

확장 메서드

Encode(IMLCustomLayer, IMTLCommandBuffer, IMTLTexture[], IMTLTexture[], NSError)

에서 설명하는 함수에 를 적용하여 를 설정합니다.

적용 대상