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: skainet-compile/skainet-compile-minerva/src/commonMain/kotlin/sk/ainet/compile/minerva/MinervaExportFacade.kt
message ="Minerva export lowered the graph to phase-one IR; compiler invocation, packaging, and verification are implemented in follow-up issues.",
118
+
message ="Minerva export lowered the graph and emitted the NPZ compiler input; compiler invocation, packaging, and verification are implemented in follow-up issues.",
106
119
details =mapOf(
107
-
"nextStep" to "Invoke the Minerva compiler and write the runtime project.",
108
-
"issue" to "#693",
120
+
"nextStep" to "Invoke libminerva compiler and package generated outputs.",
121
+
"issue" to "#694",
109
122
"layers" to intermediate.layerCount.toString(),
110
123
"input" to intermediate.input.id,
111
-
"output" to intermediate.output.id
124
+
"output" to intermediate.output.id,
125
+
"npzPath" to npzModel.logicalPath,
126
+
"npzBytes" to npzModel.bytes.size.toString()
112
127
)
113
128
)
114
129
context.error(
@@ -122,7 +137,8 @@ public class MinervaExportFacade @kotlin.jvm.JvmOverloads constructor(
122
137
context = context,
123
138
failure = failure,
124
139
compatibilityReport = compatibilityReport,
125
-
intermediate = intermediate
140
+
intermediate = intermediate,
141
+
npzModel = npzModel
126
142
)
127
143
}
128
144
@@ -223,12 +239,49 @@ public class MinervaExportFacade @kotlin.jvm.JvmOverloads constructor(
223
239
)
224
240
}
225
241
242
+
privatefunnpzSchemaFailedResult(
243
+
options:MinervaExportOptions,
244
+
context:GraphExportContext,
245
+
compatibilityReport:MinervaCompatibilityReport,
246
+
intermediate:MinervaIntermediate,
247
+
exception:MinervaNpzSchemaException
248
+
): MinervaExportResult {
249
+
val details =mutableMapOf(
250
+
"code" to exception.code,
251
+
"issue" to "#693"
252
+
)
253
+
exception.layerId?.let { details["layerId"] = it }
254
+
exception.arrayName?.let { details["arrayName"] = it }
Copy file name to clipboardExpand all lines: skainet-compile/skainet-compile-minerva/src/commonMain/kotlin/sk/ainet/compile/minerva/MinervaExportModels.kt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ public enum class MinervaExportFailureKind {
92
92
GRAPH_VALIDATION_FAILED,
93
93
COMPATIBILITY_VALIDATION_FAILED,
94
94
LOWERING_FAILED,
95
+
NPZ_SCHEMA_FAILED,
95
96
NOT_IMPLEMENTED
96
97
}
97
98
@@ -203,7 +204,8 @@ public data class MinervaExportResult(
Copy file name to clipboardExpand all lines: skainet-compile/skainet-compile-minerva/src/commonMain/kotlin/sk/ainet/compile/minerva/MinervaGraphCanonicalizer.kt
+77Lines changed: 77 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -337,11 +337,88 @@ public class MinervaGraphCanonicalizer @kotlin.jvm.JvmOverloads constructor(
Copy file name to clipboardExpand all lines: skainet-compile/skainet-compile-minerva/src/commonMain/kotlin/sk/ainet/compile/minerva/MinervaIntermediateModels.kt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ public data class MinervaTensorRef(
0 commit comments