photoprism/internal/config/tensorflow.go
Michael Mayer 14fc9cd374 Revert and improve naming of thumbnail config values #294
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-05 17:04:13 +02:00

13 lines
382 B
Go

package config
import tf "github.com/tensorflow/tensorflow/tensorflow/go"
// TensorFlowVersion returns the TenorFlow framework version.
func (c *Config) TensorFlowVersion() string {
return tf.Version()
}
// DisableTensorFlow returns true if TensorFlow should not be used for image classification.
func (c *Config) DisableTensorFlow() bool {
return c.params.DisableTensorFlow
}