From f694b8d6d7116a3bd3cbccb92ef58b358af70c23 Mon Sep 17 00:00:00 2001 From: Saurabh Gupta Date: Tue, 24 Jul 2018 22:38:40 -0400 Subject: [PATCH] Remove .encode --- torchqrnn/forget_mult.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchqrnn/forget_mult.py b/torchqrnn/forget_mult.py index 6967850..9c07119 100644 --- a/torchqrnn/forget_mult.py +++ b/torchqrnn/forget_mult.py @@ -99,7 +99,7 @@ def __init__(self): def compile(self): if self.ptx is None: - program = Program(kernel.encode(), 'recurrent_forget_mult.cu'.encode()) + program = Program(kernel, 'recurrent_forget_mult.cu') GPUForgetMult.ptx = program.compile() if torch.cuda.current_device() not in GPUForgetMult.configured_gpus: