equals-.lazy_tensor: Compare lazy tensors

==.lazy_tensorR Documentation

Compare lazy tensors

Description

Compares lazy tensors using their indices and the data descriptor's hash. This means that if two lazy_tensors:

  • are equal: they will mateterialize to the same tensors.

  • are unequal: they might materialize to the same tensors.

Usage

## S3 method for class 'lazy_tensor'
x == y

Arguments

x, y

(lazy_tensor)
Values to compare.


mlr3torch documentation built on April 4, 2025, 3:03 a.m.