Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Sources/DFlash/DFlashIntermediateDumper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public enum DFlashDumper {
eval(floatArr)

let shape = (0..<floatArr.ndim).map { floatArr.dim($0) }
let totalElements = shape.reduce(1, *)

// Build spec-compliant .npy header: shape must be a Python tuple,
// spaces pad before the final newline byte.
Expand Down
2 changes: 1 addition & 1 deletion Sources/DFlash/DFlashRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public enum DFlashRuntime {

let draftBackend = DFlashDraftBackend()

var targetCache = makeTargetCache(targetModel: targetModel)
let targetCache = makeTargetCache(targetModel: targetModel)

let draftCache = draftBackend.makeCache(
draftModel: draftModel,
Expand Down
Loading