// NewModelFromFile creates a new TensorFlow Lite Model from File.
NewModelFromFile creates a new TensorFlow Lite Model from File.
// NewModelFromFile creates a new TensorFlow Lite Model from File .
func NewModelFromFile(path string) (*Model, error) {
	if path != "" {
		m := C.TfLiteModelCreateFromFile(C.CString(path))
		if m == nil {
			return nil, ErrCreateModel
		}
		return &Model{model: m}, nil
	}
	return nil, ErrCreateModel
}
func NewModelFromFile ( path string ) ( * Model , error ) { if path != " " { m := C . TfLiteModelCreateFromFile ( C . CString ( path ) ) if m == nil { return nil , ErrCreateModel } return & Model { model : m } , nil } return nil , ErrCreateModel }
NewModelFromFile creates a new TensorFlow Lite Model from File.
NewModelFromFile creates a new TensorFlow Lite Model from File .