Open frankxyy opened 2 years ago
Hi @frankxyy
As you assume, adding device='gpu'
argument to those operators shouldn't change anything, because they receive gpu input and their placement is inferred to be on gpu.
Can you tell me more how do you measured that latency? Did you use perf_analyzer
or your custom script? What parameters did the measurements have?
The dali.py file content is as below:
A peculiar circumstance I found is that if I donot set the device parameter for the
color_space_conversion
,resize
andcrop_mirror_normalize
operator, the latency will boost to 90ms(comparing to 40ms when explicitly setting the device parameter to 'gpu'). I assumed that if the device parameter is not set, the default gpu to gpu behavior will be selected as the input of the three operators are all in gpu memory, but the program running result reveals that my assumption may be wrong. I am wondering why does this happen?