parameters: (data, targets)
docstring: Load a list of arrays into a list of arrays specified by slices
docstring_summary: Load a list of arrays into a list of arrays specified by slices
docstring_tokens: Load a list of arrays into a list of arrays specified by slices
function: def _load_general(data, targets):
      """Load a list of arrays into a list of arrays specified by slices"""
      for d_src, d_targets in zip(data, targets):
          if isinstance(d_targets, nd.NDArray):
              d_src.copyto(d_targets)
          else:
              for slice_idx, d_dst in d_targets:
                  d_src[slice_idx].copyto(d_dst)
function_tokens: def _load_general ( data , targets ) : for d_src , d_targets in zip ( data , targets ) : if isinstance ( d_targets , nd . NDArray ) : d_src . copyto ( d_targets ) else : for slice_idx , d_dst in d_targets : d_src [ slice_idx ] . copyto ( d_dst )