Do I need to rebuild the python library in Docker container if I change one file -
i using cleverhans library project.
however, class carliniwagnerl2 provided in current version of cleverhans/attacks.py, missing in version in docker.
so tried manually compile current version python file .pyc file , run following
docker cp host_address containerid:/address/
to replace old file new file.
i have tested file in docker has changed current version.
however, when try import class carliniwagnerl2 cleverhans, same error saying that
from cleverhans.attacks import carliniwagnerl2 importerror: cannot import name carliniwagnerl2
do need rebuild container?
also, since cleverhans not provide me dockerfile , other things, if need rebuild python library, how should rebuild image?
thanks
you can try building image.
create dockerfile this:
from goodfellow/competition:cpu # copy file in run cp host_address containerid:/address/
then docker build
, use image instead.
Comments
Post a Comment