Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function, absolute_import, \ | |
unicode_literals | |
import tensorflow as tf | |
from tensorflow.examples.tutorials.mnist import input_data as mnist_data | |
from tensorflow.contrib import slim | |
from tensorflow.contrib.learn import ModeKeys | |
from tensorflow.contrib.learn.python.learn import learn_runner | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build with: | |
# DOCKER_BUILDKIT=1 docker build --progress=plain --target pydantic_env --tag pydantic-test-env --file ./pydantic/pydantic.static.Dockerfile . | |
# | |
# Uses multi-stage builds. | |
# | |
# Stage 1: Temporarity builder | |
FROM python:3.9.2-slim-buster as builder | |
ARG PYDANTIC_VERSION=1.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: jax_deps | |
channels: | |
- conda-forge | |
dependencies: | |
- flake8 | |
- jaxlib | |
- jupytext | |
- jupyter-sphinx | |
- matplotlib | |
- mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alluxio Docker Deployment | |
# Based on "Using User-Defined Network" configuration from: | |
# https://docs.alluxio.io/os/user/stable/en/deploy/Running-Alluxio-On-Docker.html | |
version: '3.8' | |
networks: | |
alluxio-network: | |
name: alluxio-network | |
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alluxio Docker Deployment | |
# Based on "Using User-Defined Network" configuration from: | |
# https://docs.alluxio.io/os/user/stable/en/deploy/Running-Alluxio-On-Docker.html | |
version: '3.8' | |
networks: | |
alluxio_network: | |
name: alluxio_network | |
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install python packages with pip using compilation to reduce size | |
# - https://towardsdatascience.com/how-to-shrink-numpy-scipy-pandas-and-matplotlib-for-your-data-product-4ec8d7e86ee4 | |
# - https://avilpage.com/2020/02/reduce-python-package-footprint.html | |
# - https://stackoverflow.com/a/22942120 | |
# - https://blog.mapbox.com/aws-lambda-python-magic-e0f6a407ffc6 | |
# `/usr/local/bin/python3-config --cflags` should be applied automatically, the | |
# following flags extend these. | |
RUN pip install --upgrade pip \ | |
&& export CFLAGS="${CFLAGS} -g0 -Wl,--strip-all -Os -I/usr/include:/usr/local/include" \ | |
&& export LDFLAGS="${LDFLAGS} -L/usr/lib:/usr/local/lib" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install tini for entrypoint | |
# More info: | |
# - https://github.com/krallin/tini | |
# Checksum from https://github.com/krallin/tini/releases/download/v0.19.0/tini.sha256sum | |
ARG TINI_DOWNLOAD_URL=https://github.com/krallin/tini/releases/download/v0.19.0/tini | |
ARG TINI SHA256HASH="93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c" | |
ADD ${TINI_DOWNLOAD_URL} /opt/runtime/tini | |
RUN if ! echo "${SHA256HASH} /opt/runtime/tini" | sha256sum --check --status ; then exit 1 ; fi && \ | |
chmod +x /opt/runtime/tini |