Skip to content

Commit

Permalink
fix DeepSource issue: Function literal can be simplified
Browse files Browse the repository at this point in the history
Signed-off-by: datelier <57349093+datelier@users.noreply.github.com>
  • Loading branch information
datelier committed Jun 3, 2020
1 parent 0df8eb0 commit 057e0bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/core/converter/tensorflow/tensorflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ const (
threeDim
)

var loadFunc = func(exportDir string, tags []string, options *SessionOptions) (*tf.SavedModel, error) {
return tf.LoadSavedModel(exportDir, tags, options)
}
var loadFunc = tf.LoadSavedModel

// New load a tensorlfow model and returns a new tensorflow struct.
func New(opts ...Option) (TF, error) {
Expand Down

0 comments on commit 057e0bd

Please sign in to comment.