actors |
|
|
components.conf |
|
260 |
content |
|
|
docs |
|
|
jar.mn |
|
1541 |
MLUtils.cpp |
See nsIMLUtils for the method documentation.
|
3095 |
MLUtils.h |
|
637 |
moz.build |
|
778 |
nsIMLUtils.idl |
Checks if there's enough memory to load and use the model.
This API will first check the amount of physical memory on the system
and return false if is under aMinMemoryRequirement.
Then it will check if aModelSize fits in the available memory.
aMinMemoryRequirement can be used to determine a percentage of memory the
model is allowed to use in the available block.
arguments:
- aModelSizeInMemory - The model size in memory in bytes
- aThresholdPercentage - A Threshold percentage in the range [0, 100]
- aMinMemoryRequirement - A minimum memory requirement in bytes
|
1149 |
tests |
|
|
vendor |
|
|