Graham Dumpleton
Graham Dumpleton
As far as sniff test on the code: ``` def __instancecheck__(self, obj): return self.__subclasscheck__(type(obj)) ``` I still feel it isn't favourable to duck typing and perhaps could be rewritten as:...
Oh, and could well be the `getattr()` isn't needed there and could just say `obj.__class__`. My knowledge is based on really old Python versions where not sure a `__class__` attribute...
Issue #177 was about the deprecation warnings which were dealt with. Try your tests with version 1.15.0. None of the tests in it fail like this.
All I can speculate at the moment is that it relates to the change: > When the C extension for wrapt was being used, and a property was used on...
Related change: * https://github.com/GrahamDumpleton/wrapt/commit/dd81bd7b5b604c58572c4863c25bdd2385d56468
Having thought about it a bit, I think the reason I originally didn't fix it was because CPython lacks a C API equivalent of the hasattr() function available from Python...
Not good if setting the environment variable fixes the issue, was expecting it to still fail. If it also fails then does mean I have introduced a difference. Is disappointing...
Neither of the two code examples I can find in or linked to the tensorflow issue replicate the issue when using wrapt 1.15.0. :-(
And nor does the example from StackOverflow fail either. I will have to try with older tensorflow, or maybe even snapshot if that was version issue occurred with. The current...
Example for replicating issue is: ``` import cv2 as cv import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow import keras as ker (training_images, training_labels),...