Commit d772d390 authored by Minjie Wang's avatar Minjie Wang
Browse files

fix

parent a8a4fcba
########################################
# Borrowed and adapted from TVM project
########################################
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 2.8)
project(dgl C CXX)
# Utility functions
......
......@@ -37,7 +37,7 @@ def main(args):
bg = dgl.batch(trees)
if cuda:
reprs = bg.get_n_repr()
reprs = {key : reprs[key].cuda()}
reprs = {key : val.cuda() for key, val in reprs.items()}
bg.set_n_repr(reprs)
return bg
trainset = data.SST()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment