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
indices = [findfirst(==(l), ixs[tn.unity_tensors_idx]) for l in queryvars]
67
+
@assert!any(isnothing, indices) "To get the the most probable configuration, the unity tensors labels must include all variables. Query variables: $queryvars, Unity tensors labels: $(ixs[tn.unity_tensors_idx])"
Copy file name to clipboardExpand all lines: src/mar.jl
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -136,8 +136,10 @@ tensor network.
136
136
137
137
### Arguments
138
138
- `tn`: The [`TensorNetworkModel`](@ref) to query.
139
-
- `usecuda`: Specifies whether to use CUDA for tensor contraction.
140
-
- `rescale`: Specifies whether to rescale the tensors during contraction.
139
+
140
+
### Keyword Arguments
141
+
- `usecuda::Bool`: Specifies whether to use CUDA for tensor contraction.
142
+
- `rescale::Bool`: Specifies whether to rescale the tensors during contraction.
141
143
142
144
### Example
143
145
The following example is taken from [`examples/asia-network/main.jl`](https://tensorbfs.github.io/TensorInference.jl/dev/generated/asia-network/main/).
0 commit comments