Skip to content

Commit

Permalink
source.privacy feature
Browse files Browse the repository at this point in the history
ghstack-source-id: 4c40af24a6b11983523033590e0959bf39dc9d3c
Pull Request resolved: fairinternal/xformers#428

__original_commit__ = fairinternal/xformers@36fb05d
  • Loading branch information
bottler authored and xFormers Bot committed Jan 15, 2023
1 parent 5db2259 commit 6f3c20f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions xformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

# Set to true to utilize functorch
_is_functorch_available: bool = False
_is_opensource: bool = True


def compute_once(func):
Expand Down
14 changes: 13 additions & 1 deletion xformers/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@

import torch

from . import __version__, _cpp_lib, _is_functorch_available, _is_triton_available, ops
from . import (
__version__,
_cpp_lib,
_is_functorch_available,
_is_opensource,
_is_triton_available,
ops,
)
from .ops.common import OPERATORS_REGISTRY


Expand Down Expand Up @@ -51,6 +58,11 @@ def print_info():
else:
features["build.info"] = "none"

if _is_opensource:
features["source.privacy"] = "open source"
else:
features["source.privacy"] = "fairinternal"

for name, status in features.items():
print("{:<50} {}".format(f"{name}:", status))

Expand Down

0 comments on commit 6f3c20f

Please sign in to comment.