Enum InplaceMode

Enum InplaceMode#

Enum Documentation#

enum class tvm::ffi::InplaceMode : int32_t#

Permission to mutate a value in place along its ownership path.

Note

The numeric values 0 and 1 are part of the Python integer binding contract, matching InplaceMode.DISALLOW and InplaceMode.ALLOW respectively.

Values:

enumerator kDisallow#

Preserve the source through copy-on-write mutation.

enumerator kAllow#

Permit in-place mutation when the current value is uniquely owned.