parameters: (symbol_file, input_names, param_file=None, device=None, allow_missing=False,
                  ignore_extra=False)
return_statement: return ret
docstring: Import model previously saved by `gluon.HybridBlock.export`
          as a `gluon.SymbolBlock` for use in Gluon.
  
          Parameters
          ----------
          symbol_file : str
              Path to symbol file.
          input_names : list of str
              List of input variable names
          param_file : str, optional
              Path to parameter file.
          device : Device, default None
              The device to initialize `gluon.SymbolBlock` on.
          allow_missing : bool, default False
              Whether to silently skip loading parameters not represents in the file.
          ignore_extra : bool, default False
              Whether to silently ignore parameters from the file that are not
              present in this Block.
  
          Returns
          -------
          gluon.SymbolBlock
              `gluon.SymbolBlock` loaded from symbol and parameter files.
  
          Examples
          --------
          >>> net1 = gluon.model_zoo.vision.resnet18_v1(pretrained=True)
          >>> net1.hybridize()
          >>> x = mx.nd.random.normal(shape=(1, 3, 32, 32))
          >>> out1 = net1(x)
          >>> net1.export('net1', epoch=1)
          >>>
          >>> net2 = gluon.SymbolBlock.imports(
          ...     'net1-symbol.json', ['data'], 'net1-0001.params')
          >>> out2 = net2(x)
docstring_summary: Import model previously saved by `gluon.HybridBlock.export`
          as a `gluon.SymbolBlock` for use in Gluon.
docstring_tokens: Import model previously saved by gluon . HybridBlock . export as a gluon . SymbolBlock for use in Gluon .
function: def imports(symbol_file, input_names, param_file=None, device=None, allow_missing=False,
                  ignore_extra=False):
          """Import model previously saved by `gluon.HybridBlock.export`
          as a `gluon.SymbolBlock` for use in Gluon.
  
          Parameters
          ----------
          symbol_file : str
              Path to symbol file.
          input_names : list of str
              List of input variable names
          param_file : str, optional
              Path to parameter file.
          device : Device, default None
              The device to initialize `gluon.SymbolBlock` on.
          allow_missing : bool, default False
              Whether to silently skip loading parameters not represents in the file.
          ignore_extra : bool, default False
              Whether to silently ignore parameters from the file that are not
              present in this Block.
  
          Returns
          -------
          gluon.SymbolBlock
              `gluon.SymbolBlock` loaded from symbol and parameter files.
  
          Examples
          --------
          >>> net1 = gluon.model_zoo.vision.resnet18_v1(pretrained=True)
          >>> net1.hybridize()
          >>> x = mx.nd.random.normal(shape=(1, 3, 32, 32))
          >>> out1 = net1(x)
          >>> net1.export('net1', epoch=1)
          >>>
          >>> net2 = gluon.SymbolBlock.imports(
          ...     'net1-symbol.json', ['data'], 'net1-0001.params')
          >>> out2 = net2(x)
          """
          if is_np_array():
              sym = np_symbol.load(symbol_file)
          else:
              sym = symbol.load(symbol_file)
          if isinstance(input_names, str):
              input_names = [input_names]
          if param_file is None:
              # Get a valid type inference by using fp32
              inputs = [symbol.var(i, dtype=mx_real_t) for i in input_names]
          else:
              # Do not specify type, rely on saved params type instead
              inputs = [symbol.var(i).as_np_ndarray() if is_np_array() else symbol.var(i) for i in input_names]
          ret = SymbolBlock(sym, inputs)
          if param_file is not None:
              ret.load_parameters(param_file, device, allow_missing, ignore_extra, True, 'saved')
          return ret
function_tokens: def imports ( symbol_file , input_names , param_file = None , device = None , allow_missing = False , ignore_extra = False ) : if is_np_array ( ) : sym = np_symbol . load ( symbol_file ) else : sym = symbol . load ( symbol_file ) if isinstance ( input_names , str ) : input_names = [ input_names ] if param_file is None : # Get a valid type inference by using fp32 inputs = [ symbol . var ( i , dtype = mx_real_t ) for i in input_names ] else : # Do not specify type, rely on saved params type instead inputs = [ symbol . var ( i ) . as_np_ndarray ( ) if is_np_array ( ) else symbol . var ( i ) for i in input_names ] ret = SymbolBlock ( sym , inputs ) if param_file is not None : ret . load_parameters ( param_file , device , allow_missing , ignore_extra , True , 'saved' ) return ret