Table of Contents

Class ARange

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

Creates a 1-D tensor of values within a given range given the start, end, and step.

[Combinator]
[ResetCombinator]
[WorkflowElementCategory(ElementCategory.Source)]
public class ARange
Inheritance
ARange
Inherited Members

Properties

Device

The device on which to create the tensor.

End

The end of the range.

Start

The start of the range.

Step

The step size between values.

Type

The data type of the tensor.

Methods

Process()

Generates an observable sequence of 1-D tensors created with the arange(Scalar, Scalar, Scalar, ScalarType?, Device, bool) function.

Process<T>(IObservable<T>)

Generates an observable sequence of 1-D tensors created with the arange(Scalar, Scalar, Scalar, ScalarType?, Device, bool) function for each element of the input sequence.