private async void InitConfig(NeuralNetworkOptions options, bool isCallBack = true) { DotNet = DotNetObjectReference.Create(this); JSReference = await Runtime.InvokeAsync <IJSInProcessObjectReference>("import", "./_content/BlazorML5/ml5NeuralNetwork.js"); JSReference.InvokeVoid("createNNConfigML5", Hash, options, isCallBack, DotNet); }
private async void InitConfig(NeuralNetworkOptions options, bool isCallBack = true) { DotNet = DotNetObjectReference.Create(this); await Runtime.InvokeVoidAsync("createNNConfigML5", Hash, options, isCallBack, DotNet); }
public NeuralNetwork(IJSRuntime jSRuntime, NeuralNetworkOptions options) { Runtime = jSRuntime; Hash = Helper.UIDGenerator(); InitConfig(options); }