Skip to content

Commit

Permalink
mostly new containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jkiesele committed Sep 8, 2020
1 parent 6f6f19c commit 5f10559
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DJCLosses.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
def dummy_loss(truth, pred):
#t = tf.Print(truth,[truth],'truth ')
#p = tf.Print(pred,[pred],'pred ')
return tf.reduce_mean(truth)+tf.reduce_mean(pred)
return (tf.reduce_mean(truth)-tf.reduce_mean(pred))**2

djc_global_loss_list['dummy_loss']=dummy_loss
13 changes: 8 additions & 5 deletions docker/Dockerfile_base
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ RUN pip3 install gpustat setGPU

## torch/jupyter stuff
RUN pip3 install future gensim jupyter prompt-toolkit
RUN export CUDA="cu101" && \
pip3 install torch-scatter==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.4.0.html && \
pip3 install torch-sparse==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.4.0.html && \
pip3 install torch-cluster==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.4.0.html && \
pip3 install torch-spline-conv==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.4.0.html && \
RUN pip3 install torch-scatter==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.6.0.html && \
pip3 install torch-sparse==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.6.0.html && \
pip3 install torch-cluster==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.6.0.html && \
pip3 install torch-spline-conv==latest+cu101 -f https://pytorch-geometric.com/whl/torch-1.6.0.html && \
pip3 install torch-geometric


Expand All @@ -78,6 +77,10 @@ EXPOSE 8888
RUN adduser --disabled-password --gecos "" dummyuser
RUN apt-get install -y vim

#some tex things
RUN apt install -y texlive ghostscript dvipng





Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile_exp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

FROM cernml4reco/djcbase:py3
FROM cernml4reco/djcbase:latest



################################################################################
# Tensorflow

RUN export DEBIAN_FRONTEND=noninteractive && \
pip3 --no-cache-dir install tensorflow-gpu==2.2.0
pip3 --no-cache-dir install tensorflow-gpu==2.3.0


#2.2.0-rc2
Expand Down

0 comments on commit 5f10559

Please sign in to comment.