fn
is_neg
→boolis_neg(x: Tensor)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
xTensorTensor to query.
Returns
boolAlways 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