Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yinfan98 authored Dec 25, 2023
1 parent 26f427e commit 40ca356
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docker/Jetson/Jetpack5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ RUN git clone --recursive -b $MMDEPLOY_VERSION --depth 1 https://github.com/open
-DMMDEPLOY_CODEBASES=all && \
make -j$(nproc) && make install

# add the patch to solve the torch.distributed issue in docker
RUN cd mmdeploy/tools &&\
echo "import torch.distributed" > jetson_patch.py && \
echo "if not torch.distributed.is_available():" >> jetson_patch.py && \
echo " torch.distributed.ReduceOp = lambda: None" >> jetson_patch.py && \
sed -i '2i import jetson_patch' deploy.py

# add patch to solve the build error
RUN sed -i '/def _run_symbolic_method(g, op_name, symbolic_fn, args):/,/except TypeError as e:/\
{
Expand Down

0 comments on commit 40ca356

Please sign in to comment.