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

Function ParseDataType

paddle/phi/api/lib/kernel_dispatch.cc:135–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135DataType ParseDataType(DataType dtype) { return dtype; }
136DataType ParseDataType(const Tensor& tensor) { return tensor.type(); }
137DataType ParseDataType(const std::vector<Tensor>& tensors) {
138 if (tensors.empty()) {

Callers 4

cudnn_lstm_grad_implFunction · 0.85
embedding_grad_implFunction · 0.85

Calls 3

typeMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected