adding some basic linting - prepping support for multiple models being loaded in by the app.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:tflite_flutter/tflite_flutter.dart';
|
||||
import 'constants.dart';
|
||||
|
||||
class ModelConfiguration{
|
||||
String name;
|
||||
late List<InterpreterOptions> interpreters;
|
||||
|
||||
ModelConfiguration(this.name){
|
||||
interpreters = name.contains('gpu') ? ModelConstants.gpuInterpreterList : ModelConstants.cpuInterpreterList;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ModelConfiguration(name: $name, interpreters: $interpreters)';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user