Where is dlfeval tracing information stored?
조회 수: 1 (최근 30일)
이전 댓글 표시
When dlfeval() is used to call a function, the computation is traced in such a way as to later allow automatic differentiation via dlgradient(). For example,
x=dlarray(rand(30));
f=@(x) sum(x*x'*x*x'*x*x'*x*x'*x*x'*x*x'*x*x');
y1=f(x);
y2=dlfeval(f,x);
My question is, where is this tracing information stored? In y2? If so, why does whos() not show any apparent additional memory consumption by y2, as compared to the untraced version y1?
whos y1 y2
댓글 수: 0
답변 (1개)
Bruno Luong
2024년 2월 16일
편집: Bruno Luong
2024년 2월 16일
I don't kwow the dlarray class but IMO it looks like the creating function handle f is stored in some sort of private property in y2 well hidden and cannot be disclosed by whos command.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!