You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/usage/troubleshooting.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,9 +134,9 @@ get compiler warnings of the form:
134
134
Warning: The structure constructor at (1) has been finalized. This feature was removed by f08/0011. Use -std=f2018 or -std=gnu to eliminate the finalization.
135
135
```
136
136
These warn that the structure finalizer of the
137
-
[[ftorch(module):torch_tensor(type)]] derived type is triggered when a tensor
137
+
[[ftorch_tensor(module):torch_tensor(type)]] derived type is triggered when a tensor
138
138
goes out of scope, despite the fact that this feature was removed from the 2008
139
-
standard. That is, the [[ftorch(module):torch_tensor_delete(subroutine)]]
139
+
standard. That is, the [[ftorch_tensor(module):torch_tensor_delete(subroutine)]]
140
140
subroutine is called so that the associated memory is automatically freed.
141
141
Firstly, this is the behaviour that we want so we should not be too concerned.
142
142
Secondly, structure finalizers are not used anywhere in FTorch, so we believe
@@ -158,8 +158,8 @@ raised.
158
158
@warning
159
159
The code snippet above is **not** the intended way to create a tensor. The
160
160
intended way is to use the provided API procedures such as
161
-
[[ftorch(module):torch_tensor_from_array(interface)]] or
162
-
[[ftorch(module):torch_tensor_ones(subroutine)]]. The code snippet above is
161
+
[[ftorch_tensor(module):torch_tensor_from_array(interface)]] or
162
+
[[ftorch_tensor(module):torch_tensor_ones(subroutine)]]. The code snippet above is
163
163
only intended to illustrate the use of the structure constructor and the
0 commit comments