Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions release/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,9 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 PIP_ROOT_USER_ACTION=ignore && \
# Clean up before finishing.
RUN apt-get clean

# Create a non-root user and switch to it.
RUN useradd -m -s /bin/bash tfq-user
USER tfq-user
WORKDIR /home/tfq-user

CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion tensorflow_quantum/core/ops/load_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _load(self):
try:
path = resource_loader.get_path_to_datafile(self._name)
self._module = load_library.load_op_library(path)
except:
except Exception: # pylint: disable=broad-except
path = os.path.join(get_python_lib(),
"tensorflow_quantum/core/ops", self._name)
self._module = load_library.load_op_library(path)
Expand Down
Loading