constructor(mod, device) {
	        this.mod = mod;
	        this.mod.getFunction("vm_initialization")(new Scalar(device.deviceType, "int"), new Scalar(device.deviceId, "int"), new Scalar(2 /* POOLED_ALLOCATOR */, "int"),
	        // explicitly specify host device type
	        new Scalar(DeviceStrToEnum.cpu, "int"), new Scalar(0, "int"), new Scalar(2 /* POOLED_ALLOCATOR */, "int"));
	    }
Constructor
@param mod The underlying module, need to be detached.
@param device The main device ro run VM on.