xamarintvos
namespace CoreML
{
[Introduced(PlatformName.TvOS, 11, 2, PlatformArchitecture.All, null)]
[Introduced(PlatformName.iOS, 11, 2, PlatformArchitecture.All, null)]
[Introduced(PlatformName.MacOSX, 10, 13, 2, PlatformArchitecture.All, null)]
[Protocol(Name = "MLCustomLayer", WrapperType = typeof(MLCustomLayerWrapper))]
[ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "SetWeightData", ParameterByRef = new[] { false, true }, ParameterType = new[] { typeof(NSData[]), typeof(NSError) }, ReturnType = typeof(bool), Selector = "setWeightData:error:")]
[ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetOutputShapes", ParameterByRef = new[] { false, true }, ParameterType = new[] { typeof(NSArray[]), typeof(NSError) }, ReturnType = typeof(NSArray[]), Selector = "outputShapesForInputShapes:error:")]
[ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "EvaluateOnCpu", ParameterByRef = new[] { false, false, true }, ParameterType = new[] { typeof(MLMultiArray[]), typeof(MLMultiArray[]), typeof(NSError) }, ReturnType = typeof(bool), Selector = "evaluateOnCPUWithInputs:outputs:error:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "Encode", ParameterByRef = new[] { false, false, false, true }, ParameterType = new[] { typeof(IMTLCommandBuffer), typeof(IMTLTexture[]), typeof(IMTLTexture[]), typeof(NSError) }, ReturnType = typeof(bool), Selector = "encodeToCommandBuffer:inputs:outputs:error:")]
[Unavailable(PlatformName.WatchOS, PlatformArchitecture.All, null)]
public interface IMLCustomLayer : INativeObject, IDisposable
{
[BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export("setWeightData:error:")]
[Preserve(Conditional = true)]
bool SetWeightData(NSData![]! weights, out NSError? error);
}
}
.NET | 6.07.08.09.0 |
---|---|
Information specific to xamarintvos | |
Assembly | Xamarin.TVOS , Version=0.0.0.0, PublicKeyToken=84e04ff9cfb79065 |
Referencing | The API is automatically referenced. |
Platform Restrictions | This framework does not have platform annotations. |