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

Function ReadTensor

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

Source from the content-addressed store, hash-verified

2289}
2290
2291Result<std::shared_ptr<Tensor>> ReadTensor(io::InputStream* file) {
2292 std::unique_ptr<Message> message;
2293 RETURN_NOT_OK(ReadContiguousPayload(file, &message));
2294 ARROW_SUPPRESS_DEPRECATION_WARNING
2295 return ReadTensor(*message);
2296 ARROW_UNSUPPRESS_DEPRECATION_WARNING
2297}
2298
2299Result<std::shared_ptr<Tensor>> ReadTensor(const Message& message) {
2300 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