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

Function ReadTensor

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

Source from the content-addressed store, hash-verified

2274}
2275
2276Result<std::shared_ptr<Tensor>> ReadTensor(io::InputStream* file) {
2277 std::unique_ptr<Message> message;
2278 RETURN_NOT_OK(ReadContiguousPayload(file, &message));
2279 return ReadTensor(*message);
2280}
2281
2282Result<std::shared_ptr<Tensor>> ReadTensor(const Message& message) {
2283 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