提交 d95fa25a authored 作者: ricardoV94's avatar ricardoV94 提交者: Ricardo Vieira

XTensorType: Add `values_eq` and `values_eq_approx`

上级 bcd52e63
......@@ -173,6 +173,14 @@ class XTensorType(Type, HasDataType, HasShape):
return None
@staticmethod
def values_eq(a, b, **kwargs):
return TensorType.values_eq(a, b, **kwargs)
@staticmethod
def values_eq_approx(a, b, **kwargs):
return TensorType.values_eq_approx(a, b, **kwargs)
def __repr__(self):
return f"XTensorType({self.dtype}, shape={self.shape}, dims={self.dims})"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论