File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,11 @@ struct Function;
59
59
// / which case it tracks that `Variable`'s data and autograd history. Beyond
60
60
// / construction, the interface of a view is identical to that of a regular
61
61
// / `Variable`. You can determine whether `Variable` is in fact a view by
62
- // / probing its `is_view()` method.
62
+ // / probing its `is_view()` method. Note that the *view* semantics are only
63
+ // / meaningful for `Variable` relations that are relevant to autograd. For
64
+ // / example, if you hide your code from autograd using `.data`, the `Variable`s
65
+ // / will not be registered as having view relations, even if they share storage.
66
+ // /
63
67
// /
64
68
// / Interface
65
69
// /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments