parameters: (self, type=int)
return_statement: return _LIB.get_tensor_buffer(ctypes.c_void_p(self.tensor))
docstring: Get the byte size of a tensor should occupy.
          :param type: <type> int or float
          :return:
docstring_summary: Get the byte size of a tensor should occupy.
          :param type: <type> int or float
          :return:
docstring_tokens: Get the byte size of a tensor should occupy . : param type : <type > int or float : return :
function: def getbuffer(self, type=int):
          """
          Get the byte size of a tensor should occupy.
          :param type: <type> int or float
          :return:
          """
          if type is int:
              _LIB.get_tensor_buffer.restype = ctypes.POINTER(ctypes.c_int)
          elif type is float:
              _LIB.get_tensor_buffer.restype = ctypes.POINTER(ctypes.c_float)
          elif type is str:
              _LIB.get_tensor_buffer.restype = ctypes.POINTER(ctypes.c_char)
          else:
              return None
          return _LIB.get_tensor_buffer(ctypes.c_void_p(self.tensor))
function_tokens: def getbuffer ( self , type = int ) : if type is int : _LIB . get_tensor_buffer . restype = ctypes . POINTER ( ctypes . c_int ) elif type is float : _LIB . get_tensor_buffer . restype = ctypes . POINTER ( ctypes . c_float ) elif type is str : _LIB . get_tensor_buffer . restype = ctypes . POINTER ( ctypes . c_char ) else : return None return _LIB . get_tensor_buffer ( ctypes . c_void_p ( self . tensor ) )