MCPcopy Create free account
hub / github.com/apache/arrow / ReadTensor

Function ReadTensor

cpp/src/arrow/ipc/reader.cc:2265–2269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2263}
2264
2265Result<std::shared_ptr<Tensor>> ReadTensor(io::InputStream* file) {
2266 std::unique_ptr<Message> message;
2267 RETURN_NOT_OK(ReadContiguousPayload(file, &message));
2268 return ReadTensor(*message);
2269}
2270
2271Result<std::shared_ptr<Tensor>> ReadTensor(const Message& message) {
2272 std::shared_ptr<DataType> type;

Callers 3

CheckTensorRoundTripMethod · 0.85
FuzzIpcTensorStreamFunction · 0.85

Calls 5

ReadContiguousPayloadFunction · 0.85
GetTensorMetadataFunction · 0.85
MakeFunction · 0.50
metadataMethod · 0.45
bodyMethod · 0.45

Tested by 1

CheckTensorRoundTripMethod · 0.68