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
error("Unable to deserialize type $(_typeString), not found")
59
+
returnnothing
60
+
end
61
+
62
+
ifisnothing(param)
63
+
# no parameters, just return the type
64
+
return subtype
65
+
else
66
+
# return the type with parameters
67
+
return subtype{param}
68
+
end
69
+
end
70
+
43
71
"""
44
72
$(SIGNATURES)
45
73
Get a type from the serialization module.
@@ -123,7 +151,7 @@ function unpackVariableState(d::PackedVariableState)
123
151
# Figuring out the variableType
124
152
#TODO deprecated remove in v0.11 - for backward compatibility for saved variableTypes.
125
153
ststring =string(split(d.variableType, "(")[1])
126
-
T =getTypeFromSerializationModule(ststring)
154
+
T =parseVariableType(ststring)
127
155
isnothing(T) &&error(
128
156
"The variable doesn't seem to have a variableType. It needs to set up with an InferenceVariable from IIF. This will happen if you use DFG to add serialized variables directly and try use them. Please use IncrementalInference.addVariable().",
129
157
)
@@ -206,7 +234,7 @@ function unpackVariable(variable::VariableDFG; skipVersionCheck::Bool = false)
0 commit comments