Permalink
Browse files
feat(engine): add comment and removed dead code
- Loading branch information
Showing
with
1 addition
and
2 deletions.
-
+1
−2
engine.go
|
@@ -5,13 +5,12 @@ import ( |
|
|
"gorgonia.org/tensor" |
|
|
) |
|
|
|
|
|
type SymbolicEngine struct{} |
|
|
|
|
|
// StandardEngine is the default CPU engine for gorgonia |
|
|
type StandardEngine struct { |
|
|
tensor.StdEng |
|
|
} |
|
|
|
|
|
// Transpose tensor a according to expStrides |
|
|
func (e StandardEngine) Transpose(a tensor.Tensor, expStrides []int) error { |
|
|
if !a.IsNativelyAccessible() { |
|
|
return errors.Errorf("Cannot Transpose() on non-natively accessible tensor") |
|
|
0 comments on commit
bace889