Table of Contents

Class LinSpace

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

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

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

Properties

Count

The number of points to generate.

Device

The device on which to create the tensor.

End

The end of the range.

Start

The start of the range.

Type

The data type of the tensor.

Methods

Process()

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

Process<T>(IObservable<T>)

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