class_docstr: Definition of Continuous Bag of Words Model
class_docstr_tok: ["Definition","of","Continuous","Bag","of","Words","Model"]
code: def forward(self, x, contexts):
      e = self.embed(contexts)
      h = F.sum(e, axis=1) * (1.0 / contexts.shape[1])
      loss = self.loss_func(h, x)
      reporter.report({"loss": loss}, self)
      return loss
  
imports: import argparse
  import collections
  import os
  import six
  import warnings
  import numpy
  import chainer
  from chainer.backends import cuda
  import chainer.functions
  import chainer.initializers
  import chainer.links
  import chainer.optimizers
  from chainer import reporter
  from chainer import training
  from chainer.training import extensions
label_desc: Use image node_id 2 for calling the ContinuousBoW obj's underlying member method code with example usage: obj.forward(x, contexts) and returns: loss