| 86 | } |
| 87 | |
| 88 | bool XlaCompilationCache::Signature::operator==(const Signature& other) const { |
| 89 | if (name != other.name) return false; |
| 90 | if (arg_shapes != other.arg_shapes) return false; |
| 91 | |
| 92 | if (arg_values.size() != other.arg_values.size()) return false; |
| 93 | for (int i = 0; i < arg_values.size(); ++i) { |
| 94 | if (arg_values[i].dtype() != other.arg_values[i].dtype() || |
| 95 | arg_values[i].shape() != other.arg_values[i].shape() || |
| 96 | arg_values[i].tensor_data() != other.arg_values[i].tensor_data()) { |
| 97 | return false; |
| 98 | } |
| 99 | } |
| 100 | return true; |
| 101 | } |
| 102 | |
| 103 | uint64 XlaCompilationCache::Signature::Hash::operator()( |
| 104 | const XlaCompilationCache::Signature& signature) const { |
nothing calls this directly
no test coverage detected