Add simple hash and eq methods for gemm_operations. (#1053)
This commit is contained in:
parent
6673df0e48
commit
3a8f57a3c8
@ -212,6 +212,11 @@ class GemmOperation:
|
|||||||
''' The full procedural name indicates architecture, extended name, tile size, and layout. '''
|
''' The full procedural name indicates architecture, extended name, tile size, and layout. '''
|
||||||
return self.procedural_name()
|
return self.procedural_name()
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return hash(self.configuration_name())
|
||||||
|
|
||||||
|
def __eq__(self, other):
|
||||||
|
return self.configuration_name() == other.configuration_name()
|
||||||
|
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user