class_docstr: Implements TopKOp on gpu
  
  Currently the output seem sorted, but we do not test it. So as on
  the CPU, we only support sorted=False for now.
class_docstr_tok: ["Implements","TopKOp","on","gpu","Currently","the","output","seem","sorted",",","but","we","do","not","test","it",".","So","as","on","the","CPU",",","we","only","support","sorted=False","for","now","."]
code: def make_node(self, inp, kth):
      ctx_name = infer_context_name(inp)
      inp = as_gpuarray_variable(inp, ctx_name)
      kth = as_tensor_variable(kth)
      bcast = inp.type.broadcastable
      outs = []
      if self.return_values:
          outs.append(inp.type())
      if self.return_indices:
          outs.append(
              GpuArrayType(
                  dtype=self.idx_dtype,
                  broadcastable=bcast,
                  context_name=ctx_name,
              )()
          )
      return Apply(self, [inp, kth], outs)
  
imports: from __future__ import absolute_import, print_function, division
  import os
  from string import Template
  import numpy
  import theano
  from theano import Apply
  from theano.tensor import as_tensor_variable
  from theano.tensor.sort import TopKOp
  from .basic_ops import GpuKernelBase, Kernel, infer_context_name, as_gpuarray_variable, gpuarray_helper_inc_dir
  from .opt import register_opt, op_lifter, register_opt2
  from .type import GpuArrayType
label_desc: Use image node_id 8 for calling the GpuTopKOp obj's underlying member method code with example usage: obj.make_node(inp, kth) and returns: Apply