@@ -93,6 +93,8 @@ def bench():
93
93
@pytest .mark .parametrize ("tensor" , FROSTTTensors .getTensors (), ids = FROSTTTensors .getTensorNames ())
94
94
@pytest .mark .parametrize ("ufunc" , [numpy .logical_xor , numpy .ldexp , numpy .right_shift ])
95
95
def bench_pydata_frostt_ufunc_sparse (tacoBench , tensor , ufunc ):
96
+ benchmark .extra_info ['tensor_str' ] = str (tensor )
97
+ benchmark .extra_info ['ufunc_str' ] = ufunc .__name__
96
98
frTensor = tensor .load ().astype ('int64' )
97
99
shifter = PydataTensorShifter ()
98
100
other = shifter .shiftLastMode (frTensor ).astype ('int64' )
@@ -106,7 +108,7 @@ def bench():
106
108
@pytest .mark .parametrize ("tensor" , SuiteSparseTensors .getTensors (), ids = SuiteSparseTensors .getTensorNames ())
107
109
@pytest .mark .parametrize ("ufunc" , [numpy .logical_xor , numpy .ldexp , numpy .right_shift ])
108
110
def bench_pydata_suitesparse_ufunc_sparse (tacoBench , tensor , ufunc ):
109
- ssTensor = tensor .load (PydataMatrixMarketTensorLoader ()).astype ('int64' )
111
+ ssTensor = tensor [ 1 ] .load (PydataMatrixMarketTensorLoader ()).astype ('int64' )
110
112
shifter = PydataTensorShifter ()
111
113
other = shifter .shiftLastMode (ssTensor ).astype ('int64' )
112
114
def bench ():
0 commit comments