parameters: (vector, parameters)
return_statement: return ndarray
docstring: Reshape vector into model shape.
docstring_summary: Reshape vector into model shape.
docstring_tokens: Reshape vector into model shape .
function: def _reshape_vector(vector, parameters):
          """Reshape vector into model shape."""
          ndarray = list()
          index = 0
          for param in parameters:
              data = param.data.asnumpy().copy()
              if ("weight" not in param.name and "bias" not in param.name) or ("moment" in param.name):
                  ndarray.append(np.array(data, dtype=np.float32))
                  continue
  
              vec_it = vector[index:(index + data.size)].reshape(data.shape)
              ndarray.append(np.array(vec_it, dtype=np.float32))
              index += data.size
          return ndarray
function_tokens: def _reshape_vector ( vector , parameters ) : ndarray = list ( ) index = 0 for param in parameters : data = param . data . asnumpy ( ) . copy ( ) if ( "weight" not in param . name and "bias" not in param . name ) or ( "moment" in param . name ) : ndarray . append ( np . array ( data , dtype = np . float32 ) ) continue vec_it = vector [ index : ( index + data . size ) ] . reshape ( data . shape ) ndarray . append ( np . array ( vec_it , dtype = np . float32 ) ) index += data . size return ndarray