class_docstr: Implements the default empty space model where all queries are rendered as background.
class_docstr_tok: ["Implements","the","default","empty","space","model","where","all","queries","are","rendered","as","background","."]
code: def forward(self, position):
      background = self.background[None].to(position.device)
  
      shape = position.shape[:-1]
      ones = [1] * (len(shape) - 1)
      n_channels = background.shape[-1]
      background = torch.broadcast_to(
          background.view(background.shape[0], *ones, n_channels),
          [*shape, n_channels],
      )
  
      return background
  
imports: import math
  from dataclasses import dataclass
  from typing import Dict, Optional, Tuple
  import numpy
  import torch
  import torch.nn.functional
  from torch import nn
  from ...configuration_utils import ConfigMixin, register_to_config
  from ...models import ModelMixin
  from ...utils import BaseOutput
  from .camera import create_pan_cameras
label_desc: Use image node_id 2 for calling the VoidNeRFModel obj's underlying member method code with example usage: obj.forward(position) and returns: background