[Numpy-discussion] profile reveals calls to astype()
curzio.basso at unibas.ch
Thu Apr 7 09:58:40 CDT 2005
I have a problem trying to profile a program using numarray, maybe someone with more experience can
give me a hint...
basically, the program I am profiling has a function like this:
# some code
# a call to astype()
for i in xrange(N):
# some other code and NO explicit call to astype()
the problem is that when I print the 'callees' of foo(), astype() gets listed with an occurrence of
N+1, as if it was called inside the loop.
So now the first doubt I have is that astype() gets listed because called from some function called
by foo(), even if this should not happen. Here is the list of numarray functions called in foo()
The second thing I can think of is that astype() is implicitly called by some conversion. Can this be?
More information about the Numpy-discussion