From 9b40b8a34ce5c293d63b819e8e6f50f34e982d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zahradn=C3=ADk?= Date: Fri, 25 Oct 2024 01:14:22 +0200 Subject: [PATCH] Reexport common objects right out from neuralogic --- neuralogic/__init__.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/neuralogic/__init__.py b/neuralogic/__init__.py index 3673255..6efd943 100644 --- a/neuralogic/__init__.py +++ b/neuralogic/__init__.py @@ -4,6 +4,7 @@ import jpype from neuralogic.logging import _init_logging, LogHandler, add_log_handler +from neuralogic.core import R, V, C, F, Template, Settings _is_initialized = False @@ -20,6 +21,30 @@ jvm_options = ["-Xms1g"] +__all__ = [ + "R", + "V", + "C", + "F", + "Template", + "Settings", + "LogHandler", + "add_log_handler", + "set_max_memory_size", + "manual_seed", + "initial_seed", + "seed", + "initialize", + "is_initialized", + "set_graphviz_path", + "set_jvm_path", + "set_jvm_options", + "get_default_graphviz_path", + "jvm_options", + "jvm_params", +] + + def set_max_memory_size(size: int): """ Set maximum memory size that can be utilized by the backend (in gigabytes)