Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/getumen/cuml into update-cuml
Browse files Browse the repository at this point in the history
  • Loading branch information
getumen committed Aug 6, 2024
2 parents 26a2b97 + e5763e7 commit 79046d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions go/fil.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (m *FILModel) PredictSingleClassScore(

result := make([]float32, numRow)
for i := 0; i < numRow; i++ {
result[i] = resultRaw[i*m.NumClass()+1]
result[i] = resultRaw[i*2+1]
}
return result, nil
}
Expand All @@ -165,6 +165,3 @@ func (m *FILModel) Close() error {
return err
}

func (m *FILModel) NumClass() int {
return m.raw.NumClass()
}
2 changes: 1 addition & 1 deletion go/rawcuml4go/device_memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func UseArenaMemoryResource(arena_size uint64) (
error,
) {
var pointer C.DeviceMemoryResource
ret := C.UseArenaMemoryResource(&pointer, arena_size)
ret := C.UseArenaMemoryResource(&pointer, (C.size_t)(arena_size))
if ret != 0 {
return nil, ErrGetDeviceMemoryResource
}
Expand Down

0 comments on commit 79046d7

Please sign in to comment.