Table of Contents

Method Process

Namespace
Bonsai.ML.Torch
Assembly
Bonsai.ML.Torch.dll

Process(IObservable<Tensor>)

Returns an observable sequence that sets the value of the input tensor to the Value property at indices specified by the Index property.

public IObservable<torch.Tensor> Process(IObservable<torch.Tensor> source)

Parameters

source IObservable<torch.Tensor>

Returns

IObservable<torch.Tensor>

Process(IObservable<Tuple<Tensor, TensorIndex>>)

Returns an observable sequence that sets the value of the input tensor to the Value property using the tensor index in the input sequence.

public IObservable<torch.Tensor> Process(IObservable<Tuple<torch.Tensor, torch.TensorIndex>> source)

Parameters

source IObservable<Tuple<torch.Tensor, torch.TensorIndex>>

Returns

IObservable<torch.Tensor>

Process(IObservable<Tuple<Tensor, TensorIndex[]>>)

Returns an observable sequence that sets the value of the input tensor to the Value property using the tensor index array in the input sequence.

public IObservable<torch.Tensor> Process(IObservable<Tuple<torch.Tensor, torch.TensorIndex[]>> source)

Parameters

source IObservable<Tuple<torch.Tensor, torch.TensorIndex[]>>

Returns

IObservable<torch.Tensor>

Process(IObservable<Tuple<Tensor, Tensor>>)

Returns an observable sequence that sets the value of the input tensor in item 1 to item 2 at indices specified by the Index property.

public IObservable<torch.Tensor> Process(IObservable<Tuple<torch.Tensor, torch.Tensor>> source)

Parameters

source IObservable<Tuple<torch.Tensor, torch.Tensor>>

Returns

IObservable<torch.Tensor>

Process(IObservable<Tuple<Tensor, Tensor, TensorIndex>>)

Returns an observable sequence that sets the value of the input tensor in item 1 to item 2 at the tensor index specified in item 3.

public IObservable<torch.Tensor> Process(IObservable<Tuple<torch.Tensor, torch.Tensor, torch.TensorIndex>> source)

Parameters

source IObservable<Tuple<torch.Tensor, torch.Tensor, torch.TensorIndex>>

Returns

IObservable<torch.Tensor>

Process(IObservable<Tuple<Tensor, Tensor, TensorIndex[]>>)

Returns an observable sequence that sets the value of the input tensor in item 1 to item 2 at the tensor index array specified in item 3.

public IObservable<torch.Tensor> Process(IObservable<Tuple<torch.Tensor, torch.Tensor, torch.TensorIndex[]>> source)

Parameters

source IObservable<Tuple<torch.Tensor, torch.Tensor, torch.TensorIndex[]>>

Returns

IObservable<torch.Tensor>