operator ==
函数功能
Tensor类重载相等运算符,检查两个Tensor的内容是否相等。
函数原型
bool operator==(const Tensor &other);
参数说明
参数名 |
输入/输出 |
说明 |
---|---|---|
other |
输入 |
输入的Tensor类。 |
父主题: Tensor
Tensor类重载相等运算符,检查两个Tensor的内容是否相等。
bool operator==(const Tensor &other);
参数名 |
输入/输出 |
说明 |
---|---|---|
other |
输入 |
输入的Tensor类。 |