Table of Contents

Class TensorEngine.Threading.Variable

Namespace
NumSharp
Assembly
NumSharp.dll

One threading knob: a logical name, an optional backing environment variable, and the module hooks that read and apply its value. Read-only from outside; mutated only through TensorEngine.Threading.

public sealed class TensorEngine.Threading.Variable
Inheritance
TensorEngine.Threading.Variable
Inherited Members

Properties

EnvVar

Backing environment variable, or null for a knob with no env backing.

public string EnvVar { get; }

Property Value

string

IsEnvSourced

True when the value was seeded from a pre-existing env var (the source of truth).

public bool IsEnvSourced { get; }

Property Value

bool

IsExplicitlySet

True once the value has been set through the API (as opposed to only seeded).

public bool IsExplicitlySet { get; }

Property Value

bool

Name

Logical knob name.

public string Name { get; }

Property Value

string

Threads

The current thread count (null = unset / auto). A knob with a live NumSharp.TensorEngine.Threading.Variable.Reader reports that; otherwise an env-backed knob reports the env var's current value (so an externally-changed env var stays authoritative); otherwise the last value set through the API.

public int? Threads { get; }

Property Value

int?

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.