Skip to content
Permalink
Browse files

everything uses gorgonia.org/tensor now

  • Loading branch information...
chewxy committed Sep 17, 2017
1 parent e025f78 commit ddf5fb00ceb83aa158b8e86441befad835bf35e0
Showing with 120 additions and 108 deletions.
  1. +10 −4 Gopkg.lock
  2. +13 −10 Gopkg.toml
  3. +1 −1 blas.go
  4. +1 −1 broadcast_test.go
  5. +1 −1 compile.go
  6. +1 −1 const.go
  7. +1 −1 cuda_test.go
  8. +1 −1 dual.go
  9. +1 −1 dual_test.go
  10. +1 −1 equalities.go
  11. +1 −1 example_concurrent_training_test.go
  12. +1 −1 example_linearregression_test.go
  13. +1 −1 examples/charRNN/model.go
  14. +1 −1 examples/charRNN/util.go
  15. +1 −1 examples/cuda/main.go
  16. +1 −1 examples/logisticregression/io.go
  17. +1 −1 examples/logisticregression/main.go
  18. +1 −1 examples/stacked autoencoder/io.go
  19. +1 −1 examples/stacked autoencoder/main.go
  20. +1 −1 examples/stacked autoencoder/neuron.go
  21. +1 −1 examples/stacked autoencoder/stackedDA.go
  22. +1 −1 gorgonia.go
  23. +1 −1 gorgonia_test.go
  24. +1 −1 graph_test.go
  25. +1 −1 nn.go
  26. +1 −1 nn_test.go
  27. +1 −1 node.go
  28. +1 −1 noextern.go
  29. +1 −1 noextern_test.go
  30. +1 −1 op.go
  31. +1 −1 op_infidel.go
  32. +1 −1 op_math.go
  33. +1 −1 op_math_cuda_test.go
  34. +1 −1 op_math_test.go
  35. +1 −1 op_nn.go
  36. +1 −1 op_reduction.go
  37. +1 −1 op_tensor.go
  38. +1 −1 op_tensor_test.go
  39. +1 −1 operations.go
  40. +1 −1 operations_test.go
  41. +1 −1 operatorPointwise_binary.go
  42. +1 −1 operatorPointwise_binary_const.go
  43. +1 −1 operatorPointwise_binary_test.go
  44. +1 −1 operatorPointwise_unary.go
  45. +1 −1 operatorPointwise_unary_test.go
  46. +5 −1 perf.go
  47. +1 −1 shape.go
  48. +1 −1 slice.go
  49. +1 −1 solvers.go
  50. +1 −1 solvers_test.go
  51. +1 −1 tensor/array.go
  52. +1 −1 tensor/defaultengine.go
  53. +1 −1 tensor/defaultengine_arith.go
  54. +1 −1 tensor/defaultengine_cmp.go
  55. +2 −2 tensor/defaultengine_mapreduce.go
  56. +1 −1 tensor/defaultengine_matop_stack.go
  57. +1 −2 tensor/defaultengine_matop_transpose.go
  58. +1 −1 tensor/defaultengine_misc.go
  59. +1 −1 tensor/defaultengine_prep.go
  60. +1 −1 tensor/defaultengine_unary.go
  61. +2 −2 tensor/defaultenginefloat32.go
  62. +2 −2 tensor/defaultenginefloat64.go
  63. +1 −1 tensor/dense_reduction_test.go
  64. +1 −1 tensor/example_extension_matop_test.go
  65. +1 −1 tensor/example_extension_test.go
  66. +1 −1 tensor/interfaces.go
  67. +1 −1 tensor/internal/execution/e.go
  68. +1 −1 tensor/internal/execution/eng_argmethods.go
  69. +1 −1 tensor/internal/execution/eng_arith.go
  70. +1 −1 tensor/internal/execution/eng_cmp.go
  71. +1 −1 tensor/internal/execution/eng_map.go
  72. +1 −1 tensor/internal/execution/eng_reduce.go
  73. +1 −1 tensor/internal/execution/eng_unary.go
  74. +1 −1 tensor/internal/execution/reduction_specialization.go
  75. +1 −1 tensor/perf.go
  76. +1 −1 tensor/testutils_test.go
  77. +1 −1 testsetup_test.go
  78. +1 −1 type.go
  79. +1 −1 typeSystem.go
  80. +1 −1 typeSystem_test.go
  81. +1 −1 type_test.go
  82. +1 −1 utils.go
  83. +1 −1 values.go
  84. +1 −1 values_primitives.go
  85. +1 −1 values_utils.go
  86. +1 −1 values_utils_test.go
  87. +1 −1 vm_genera.go
  88. +1 −1 vm_genera_cuda.go
  89. +1 −1 vm_genera_cuda_test.go
  90. +1 −1 vm_genera_test.go
  91. +1 −1 vm_tape.go
  92. +1 −1 weights.go

Some generated files are not rendered by default. Learn more.

@@ -20,7 +20,6 @@
# name = "github.com/x/y"
# version = "2.4.0"

ignored = ["github.com/alecthomas/assert"]

[[constraint]]
name = "github.com/awalterschulze/gographviz"
@@ -31,36 +30,28 @@ ignored = ["github.com/alecthomas/assert"]
name = "github.com/chewxy/cu"

[[constraint]]
branch = "master"
name = "github.com/chewxy/hm"
version = "~1.0.0"

[[constraint]]
branch = "master"
name = "github.com/chewxy/math32"
version = "~1.0.0"

[[constraint]]
branch = "master"
name = "github.com/chewxy/vecf32"
version = '~0.8.0"

[[constraint]]
branch = "master"
name = "github.com/chewxy/vecf64"
version = '~0.8.0"

[[constraint]]
branch = "master"
name = "gonum.org/v1/gonum"

[[constraint]]
branch = "master"
name = "github.com/leesper/go_rng"

[[constraint]]
name = "github.com/pkg/errors"
version = ">=0.8.0, <1.0.0"
version = "~0.8.0"

[[constraint]]
name = "github.com/stretchr/testify"
@@ -73,3 +64,15 @@ ignored = ["github.com/alecthomas/assert"]
[[constraint]]
branch = "master"
name = "golang.org/x/tools"

[[constraint]]
branch = "master"
name = "gonum.org/v1/gonum"

[[constraint]]
branch = "master"
name = "gonum.org/v1/netlib"

[[constraint]]
branch = "master"
name = "gorgonia.org/tensor"
@@ -3,9 +3,9 @@ package gorgonia
import (
"sync"

"github.com/chewxy/gorgonia/tensor"
"gonum.org/v1/gonum/blas"
"gonum.org/v1/gonum/blas/gonum"
"gorgonia.org/tensor"
)

var blasdoor sync.Mutex
@@ -4,8 +4,8 @@ import (
"io/ioutil"
"testing"

"github.com/chewxy/gorgonia/tensor"
"github.com/stretchr/testify/assert"
"gorgonia.org/tensor"
)

func TestBroadcastPattern(t *testing.T) {
@@ -5,8 +5,8 @@ import (
"fmt"
"io"

"github.com/chewxy/gorgonia/tensor"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

// This file deals with the compilation from a expression graph into a program
@@ -3,7 +3,7 @@ package gorgonia
import (
"math"

"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

const (
@@ -7,7 +7,7 @@ import (
"os"
"testing"

"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

func TestDevCUDA(t *testing.T) {
@@ -3,9 +3,9 @@ package gorgonia
import (
"fmt"

"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

type dualValue struct {
@@ -3,9 +3,9 @@ package gorgonia
import (
"testing"

"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/stretchr/testify/assert"
"gorgonia.org/tensor"
)

func Test_dvBind0(t *testing.T) {
@@ -1,6 +1,6 @@
package gorgonia

import "github.com/chewxy/gorgonia/tensor"
import "gorgonia.org/tensor"

func scalarEq(a, b Scalar) bool {
switch at := a.(type) {
@@ -8,7 +8,7 @@ import (
"sync"

. "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

const (
@@ -7,7 +7,7 @@ import (
"runtime"

. "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

const (
@@ -9,7 +9,7 @@ import (
"strconv"

. "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

var hiddenSizes = []int{100}
@@ -2,7 +2,7 @@ package main

import (
. "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

func sample(val Value) int {
@@ -5,7 +5,7 @@ import (
"log"

T "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

func main() {
@@ -8,7 +8,7 @@ import (
"os"
"strconv"

"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

func loadStatic() (w, x, y []float64) {
@@ -13,7 +13,7 @@ import (
"time"

G "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
// cblas "gonum.org/v1/netlib/blas/netlib"
)

@@ -8,7 +8,7 @@ import (
"math"
"os"

"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

const numLabels = 10
@@ -14,8 +14,8 @@ import (
"runtime/pprof"

T "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gonum.org/v1/gonum/blas/gonum"
"gorgonia.org/tensor"
)

var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
@@ -6,7 +6,7 @@ import (
"errors"

. "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

type Neuron struct {
@@ -9,7 +9,7 @@ import (
"os"

. "github.com/chewxy/gorgonia"
"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

type StackedDA struct {
@@ -3,9 +3,9 @@ package gorgonia
import (
"fmt"

"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

// Functions in this file returns *Node and panics if an error happens
@@ -3,9 +3,9 @@ package gorgonia
import (
"testing"

nd "github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/stretchr/testify/assert"
nd "gorgonia.org/tensor"
)

func TestNewConstant(t *testing.T) {
@@ -3,10 +3,10 @@ package gorgonia
import (
"testing"

"github.com/chewxy/gorgonia/tensor"
"github.com/stretchr/testify/assert"
"gonum.org/v1/gonum/graph"
"gonum.org/v1/gonum/graph/topo"
"gorgonia.org/tensor"
)

func TestGraphBasics(t *testing.T) {
2 nn.go
@@ -1,8 +1,8 @@
package gorgonia

import (
"github.com/chewxy/gorgonia/tensor"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

// BinaryXent is a convenience function for doing binary crossentropy stuff.
@@ -5,7 +5,7 @@ import (
"runtime"
"testing"

"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

func dropoutTest(t *testing.T, dt tensor.Dtype) error {
@@ -9,9 +9,9 @@ import (
"log"

"github.com/awalterschulze/gographviz"
"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

// A Node is a node in the computation graph
@@ -2,7 +2,7 @@

package gorgonia

import "github.com/chewxy/gorgonia/tensor"
import "gorgonia.org/tensor"

// CUDA indicates if this build is using CUDA
const CUDA = false
@@ -6,7 +6,7 @@ import (
"runtime"
"testing"

"github.com/chewxy/gorgonia/tensor"
"gorgonia.org/tensor"
)

func BenchmarkOneMil(b *testing.B) {
2 op.go
@@ -5,9 +5,9 @@ import (
"hash"
"hash/fnv"

"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

// DimSizer is any type (typically a tensor.Shape) that allows querying for a dimension size given an input dimension.
@@ -5,8 +5,8 @@ import (
"hash"
"hash/fnv"

"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"gorgonia.org/tensor"
)

/*
@@ -20,9 +20,9 @@ import (
"hash"
"hash/fnv"

"github.com/chewxy/gorgonia/tensor"
"github.com/chewxy/hm"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)

/* ELEMENTWISE BINARY OPERATION */

0 comments on commit ddf5fb0

Please sign in to comment.
You can’t perform that action at this time.