MCPcopy Create free account
hub / github.com/NetEase-Media/grps / ParseNDArray

Function ParseNDArray

server/cpp_server/src/handler/grps_handler.cc:285–316  ·  view source on GitHub ↗

Parse NDArray from http body to generic tensor. NDArray is a multi dimensional array, dtype is default to float32. NDArray format: { "ndarray": [[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]] // dynamic multi dimensional array }

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

PredictByHttpMethod · 0.85

Calls 9

ParseNDArrayShapeAndValFunction · 0.85
IsArrayMethod · 0.80
whatMethod · 0.45
mutable_gtensorsMethod · 0.45
ClearMethod · 0.45
add_tensorsMethod · 0.45
set_dtypeMethod · 0.45
add_shapeMethod · 0.45
add_flat_float32Method · 0.45

Tested by

no test coverage detected