fn

is_neg

bool
is_neg(x: Tensor)
source

Predicate: does the tensor carry a lazy "negated" flag?

Some reference frameworks track negation as a lazy view flag that is materialised on access. Lucid eagerly materialises every operation, so this predicate is always False.

Parameters

xTensor
Tensor to query.

Returns

bool

Always False.

Notes

Lucid's tensor model has no lazy-flag bits — negation is realised by the engine neg op which produces a fresh buffer (or, under fusion, an in-pipeline transformation that still yields concrete values). There is therefore nothing to query.

Examples

>>> import lucid
>>> lucid.is_neg(-lucid.tensor([1.0, 2.0]))
False