We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5f40f commit 9f6b6dfCopy full SHA for 9f6b6df
1 file changed
pygpu/gpuarray.pyx
@@ -1978,7 +1978,10 @@ cdef class GpuArray:
1978
return str(numpy.asarray(self))
1979
1980
def __repr__(self):
1981
- return 'gpuarray.' + repr(numpy.asarray(self))
+ try:
1982
+ return 'gpuarray.' + repr(numpy.asarray(self))
1983
+ except Exception:
1984
+ return 'gpuarray.array(<content not available>)'
1985
1986
1987
0 commit comments