mlir::irTrait Shape
Source pub trait Shape {
// Required methods
fn rank(&self) -> isize;
fn get(&self, i: isize) -> i64;
// Provided methods
fn to_vec(&self) -> Vec<i64> { ... }
fn to_vec_transpose(&self) -> Vec<i64> { ... }
fn unpack(&self) -> ShapeUnpacked { ... }
fn unpack_transpose(&self) -> ShapeUnpacked { ... }
}
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.