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

Function from_blob

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

Source from the content-addressed store, hash-verified

133}
134
135PADDLE_API Tensor from_blob(void* data,
136 const phi::IntArray& shape,
137 phi::DataType dtype,
138 phi::DataLayout layout,
139 const phi::Place& place,
140 const Deleter& deleter) {
141 auto meta =
142 phi::DenseTensorMeta(dtype, common::make_ddim(shape.GetData()), layout);
143 return FromBlobImpl(data, meta, place, deleter);
144}
145
146PADDLE_API Tensor from_blob(void* data,
147 const phi::IntArray& shape,

Callers 7

mainFunction · 0.50
mainFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls 3

make_ddimFunction · 0.85
FromBlobImplFunction · 0.85
GetDataMethod · 0.45

Tested by 7

mainFunction · 0.40
mainFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40