code: def with_cpu(layer: Model, ops: Ops) -> Model:
      layer.to_cpu()
      return Model(
          f"with_cpu({layer.name})",
          forward,
          layers=[layer],
          ops=ops,
          init=init,
          dims={
              name: layer.maybe_get_dim(name)
              for name in layer.dim_names
          },
      )
  
file_path: thinc/thinc/layers/with_cpu.py
imports: from typing import Any, Callable, Tuple
  import numpy
  from thinc.backends import Ops
  from ..config import registry
  from ..model import Model
label_desc: Use image node_id 1 for calling a global function with example usage: with_cpu(layer, ops) and returns: Model