def one_hot_vector(self, answer):
        vector = np.zeros(self.vocab_size)
        vector[self.word_to_index[answer]] = 1
        return vector
Create a DeviceNDArray object that is like ary.
dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/BABI.one_hot_vector--crossover with--dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/devicearray.py/from_array_like