Skip to content
class

InvalidArgument

extendsLucidError
InvalidArgument

Thrown when an argument's value is out of what the op accepts — a negative size, a step of zero, a probability outside [0, 1], a group count that does not divide the channels.

The caller passed the right types and shapes and a value that cannot be right. Mapped to lucid._C.engine.InvalidArgument, which derives from LucidError and the built-in ValueError: the same kind of refusal raised ValueError from Python and a bare LucidError from the engine, so neither except caught both.

Parameters

msgstd::string
Fully formatted message; passed through unchanged to the LucidError base.

Constructors

1
ctor

InvalidArgument

void InvalidArgument(int msg)

Construct an InvalidArgument from the call site's message naming the argument and the value it was given.