message: [CFFI] minor bug fix
diff: @@ -626,13 +626,13 @@ class Tensor(object):
  c_comm_type = enum_to_int(ParameterSyncType, comm_type)
  if np_array.dtype == np.float32:
  raw_ptr = ffi.cast("float*", np_raw_ptr[0])
  - ret_val = ffc.flexflow_tensor_get_tensor_float(self.handle, ffmodel.handle, raw_ptr, c_comm_type, false)
  + ret_val = ffc.flexflow_tensor_get_tensor_float(self.handle, ffmodel.handle, raw_ptr, c_comm_type, False)
  elif np_array.dtype == np.int32:
  raw_ptr = ffi.cast("int*", np_raw_ptr[0])
  - ret_val = ffc.flexflow_tensor_get_tensor_int(self.handle, ffmodel.handle, raw_ptr, c_comm_type, false)
  + ret_val = ffc.flexflow_tensor_get_tensor_int(self.handle, ffmodel.handle, raw_ptr, c_comm_type, False)
  elif np_array.dtype == np.int64:
  raw_ptr = ffi.cast("int64_t*", np_raw_ptr[0])
  - ret_val = ffc.flexflow_tensor_get_tensor_int64(self.handle, ffmodel.handle, raw_ptr, c_comm_type, false)
  + ret_val = ffc.flexflow_tensor_get_tensor_int64(self.handle, ffmodel.handle, raw_ptr, c_comm_type, False)
  fflogger.debug("get weights raw_ptr: %s, %s, %s, %s" %( str(raw_ptr), str(np_raw_ptr[0]), hex(np_raw_ptr[0]), str(shape)))
  assert ret_val == True
  return np_array
  @@ -651,13 +651,13 @@ class Tensor(object):
  c_comm_type = enum_to_int(ParameterSyncType, comm_type)
  if np_array.dtype == np.float32:
  raw_ptr = ffi.cast("float*", np_raw_ptr[0])
  - ret_val = ffc.flexflow_tensor_get_tensor_float(self.handle, ffmodel.handle, raw_ptr, c_comm_type, true)
  + ret_val = ffc.flexflow_tensor_get_tensor_float(self.handle, ffmodel.handle, raw_ptr, c_comm_type, True)
  elif np_array.dtype == np.int32:
  raw_ptr = ffi.cast("int*", np_raw_ptr[0])
  - ret_val = ffc.flexflow_tensor_get_tensor_int(self.handle, ffmodel.handle, raw_ptr, c_comm_type, true)
  + ret_val = ffc.flexflow_tensor_get_tensor_int(self.handle, ffmodel.handle, raw_ptr, c_comm_type, True)
  elif np_array.dtype == np.int64:
  raw_ptr = ffi.cast("int64_t*", np_raw_ptr[0])
  - ret_val = ffc.flexflow_tensor_get_tensor_int64(self.handle, ffmodel.handle, raw_ptr, c_comm_type, true)
  + ret_val = ffc.flexflow_tensor_get_tensor_int64(self.handle, ffmodel.handle, raw_ptr, c_comm_type, True)
  fflogger.debug("get weights raw_ptr: %s, %s, %s, %s" %( str(raw_ptr), str(np_raw_ptr[0]), hex(np_raw_ptr[0]), str(shape)))
  assert ret_val == True
  return np_array
  