Pysyft: AttributeError: 'int' object has no attribute 'is_wrapper'

Created on 12 Jun 2019  路  5Comments  路  Source: OpenMined/PySyft

Describe the bug
Execute Part 11 - Secure Deep Learning Classification.ipynb ecounter "AttributeError: 'int' object has no attribute 'is_wrapper'"

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'examples/tutorials/Part 11 - Secure Deep Learning Classification.ipynb'
  2. Click on 'run all'
  3. Scroll down to 'cell 17 test(args, model, private_test_loader)'
  4. See error

Expected behavior
No error here:).
Screenshots
1
Desktop (please complete the following information):
On Google colaboratory

Type

Most helpful comment

2274 should solve

It will be merged very soon so if you can build the code from source in your colab you should benefit from it quickly, otherwise the 1.19 release will arrive in a few days. :)

All 5 comments

Hey, indeed there is a bug in our last release 0.1.18 when operating with constant values, I'm working on a fix right now.

@LaRiffle Thank you:)! I appreciate your help.

2274 should solve

It will be merged very soon so if you can build the code from source in your colab you should benefit from it quickly, otherwise the 1.19 release will arrive in a few days. :)

Thank you @LaRiffle!

For information, this is my config to build and run the latest code from PySyft on Colab:

!pip install tf-encrypted

! URL="https://github.com/openmined/PySyft.git" && FOLDER="PySyft" && if [ ! -d $FOLDER ]; then git clone -b dev --single-branch $URL; else (cd $FOLDER && git pull $URL && cd ..); fi;

!cd PySyft; python setup.py install  > /dev/null

import os
import sys
module_path = os.path.abspath(os.path.join('./PySyft'))
if module_path not in sys.path:
    sys.path.append(module_path)

!pip install --upgrade --force-reinstall lz4
!pip install --upgrade --force-reinstall websocket
!pip install --upgrade --force-reinstall websockets
!pip install --upgrade --force-reinstall zstd

I'm sure this is sub optimal, but it works ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akirahirohito picture akirahirohito  路  3Comments

mgale694 picture mgale694  路  3Comments

alberduris picture alberduris  路  3Comments

IonesioJunior picture IonesioJunior  路  3Comments

jvmncs picture jvmncs  路  3Comments