mirror of
https://github.com/swdee/go-rknnlite.git
synced 2025-09-26 19:31:12 +08:00
added function to return pool size
This commit is contained in:
5
pool.go
5
pool.go
@@ -109,6 +109,11 @@ func (p *Pool) SetWantFloat(val bool) {
|
||||
}
|
||||
}
|
||||
|
||||
// Size returns the Pool size
|
||||
func (p *Pool) Size() int {
|
||||
return p.size
|
||||
}
|
||||
|
||||
// getRuntimeCore takes an integer and returns the core mask value to use from
|
||||
// the coremask list
|
||||
func getRuntimeCore(i int, cores []CoreMask) CoreMask {
|
||||
|
Reference in New Issue
Block a user