File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ const reshapeDispatch =
73
73
program : webgpu_program . WebGPUProgram ) : [ number , number , number ] => {
74
74
const MAX_COMPUTE_PER_DIMENSION_DISPATCH_SIZE =
75
75
device . limits . maxComputeWorkgroupsPerDimension ;
76
- const layout = program [ ' dispatchLayout' ] ;
77
- const dispatch = program [ ' dispatch' ] ;
76
+ const layout = program . dispatchLayout ;
77
+ const dispatch = program . dispatch ;
78
78
if ( dispatch . every ( ( d ) => d <= MAX_COMPUTE_PER_DIMENSION_DISPATCH_SIZE ) ) {
79
79
return dispatch ;
80
80
}
@@ -694,8 +694,8 @@ export class WebGPUBackend extends KernelBackend {
694
694
} ;
695
695
696
696
const kernelMs = await Promise . all ( flattenedActiveTimerQueries ) ;
697
- res [ ' kernelMs' ] = util . sum ( kernelMs ) ;
698
- res [ ' getExtraProfileInfo' ] = ( ) =>
697
+ res . kernelMs = util . sum ( kernelMs ) ;
698
+ res . getExtraProfileInfo = ( ) =>
699
699
kernelMs . map ( ( d , i ) => ( { name : flattenedActiveTimerNames [ i ] , ms : d } ) )
700
700
. map ( d => `${ d . name } : ${ d . ms } ` )
701
701
. join ( ', ' ) ;
You can’t perform that action at this time.
0 commit comments