class_docstr: .. note:: `zoo.pipeline.api.onnx` is deprecated in 0.10.0
  This will be removed in future releases.
class_docstr_tok: ["..","note",":",":","`","zoo.pipeline.api.onnx","`","is","deprecated","in","0.10.0","This","will","be","removed","in","future","releases","."]
docstr: Grab data in TensorProto and to_tensor to numpy array.
docstr_tok: ["Grab","data","in","TensorProto","and","to_tensor","to","numpy","array","."]
code: def to_numpy(tensor_proto):
      """Grab data in TensorProto and to_tensor to numpy array."""
      warnings.warn(
          "deprecated in 0.10.0, and will be removed in future release"
      )
      try:
          from onnx.numpy_helper import to_array
      except ImportError as e:
          raise ImportError(
              "Unable to import onnx which is required {}".format(e)
          )
      np_array = to_array(tensor_proto).reshape(
          tuple(tensor_proto.dims)
      )
      return np_array
  
imports: import warnings
label_desc: Use image node_id 2 for calling the OnnxHelper obj's underlying member method code with example usage: obj.to_numpy(tensor_proto) and returns: np_array