Skip to content

Commit

Permalink
chore: omit type hm.Type from declaration of var; it will be inferred…
Browse files Browse the repository at this point in the history
… from the right-hand side
  • Loading branch information
owulveryck committed Sep 3, 2019
1 parent 692ce41 commit a299f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions type.go
Expand Up @@ -36,8 +36,8 @@ var (
ten3F32 = &TensorType{Dims: 3, Of: tensor.Float32}

// removes the need for type checking
f64T hm.Type = tensor.Float64
f32T hm.Type = tensor.Float32
f64T = tensor.Float64 // hm.Type
f32T = tensor.Float32 // hm.Type
)

var acceptableDtypes = [...]tensor.Dtype{tensor.Float64, tensor.Float32, tensor.Int, tensor.Int64, tensor.Int32, tensor.Byte, tensor.Bool}
Expand Down

0 comments on commit a299f65

Please sign in to comment.