docstr: Restore from restore_path
  :param sess: active session for session-based frameworks (e.g. TF)
  :param tensors: {name: array}
docstr_tok: ["Restore","from","restore_path",":","param","sess",":","active","session","for","session-based","frameworks","(","e.g",".","TF",")",":","param","tensors",":","{","name",":","array","}"]
code: def from_arrays(self, session: Any, tensors: Any):
      """
      Restore from restore_path
      :param sess: active session for session-based frameworks (e.g. TF)
      :param tensors: {name: array}
      """
      # if variable was saved using global network, re-map it to online
      # network
      # TODO: Can this be more generic so that `global/` and `online/` are not
      # hardcoded here?
      if isinstance(tensors, dict):
          tensors = tensors.items()
  
      variables = {
          k.replace("global/", "online/"): v for k, v in tensors
      }
  
      # Assign all variables using placeholder
      placeholder_dict = {
          ph: variables[v.name.split(":")[0]]
          for ph, v in zip(self._variable_placeholders, self._variables)
      }
      session.run(self._variable_update_ops, placeholder_dict)
  
file_path: coach/rl_coach/architectures/tensorflow_components/savers.py
imports: import pickle
  from typing import Any, List, Dict
  import tensorflow
  import numpy
  from rl_coach.saver import Saver
label_desc: Use image node_id 5 for calling the GlobalVariableSaver obj's underlying member method code with example usage: obj.from_arrays(session, tensors) without return types