MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / is_gpu

Method is_gpu

paddle/phi/api/lib/tensor.cc:174–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174bool Tensor::is_gpu() const {
175 return place().GetType() == phi::AllocationType::GPU;
176}
177
178bool Tensor::is_gpu_pinned() const {
179 return place().GetType() == phi::AllocationType::GPUPINNED;

Callers 15

eager_api_async_readFunction · 0.80
eager_api_async_writeFunction · 0.80
tensor_method_numpyFunction · 0.80
ReluForwardFunction · 0.80
ReluBackwardFunction · 0.80
ReluForwardFunction · 0.80
ReluBackwardFunction · 0.80
mainFunction · 0.80
TESTFunction · 0.80
paddle_gap_forwardFunction · 0.80
AddForwardFunction · 0.80
AddBackwardFunction · 0.80

Calls 2

placeFunction · 0.50
GetTypeMethod · 0.45

Tested by 2

mainFunction · 0.64
TESTFunction · 0.64