gorgonia.org/gorgonia@v0.9.17/batch.go (about)

     1  package gorgonia
     2  
     3  // Batched interface describes any object that can process batch work
     4  type Batched interface {
     5  	WorkAvailable() <-chan struct{}
     6  	DoWork()
     7  }
     8  
     9  // BatchedBLAS interface describes any object that can process BLAS work in batch
    10  type BatchedBLAS interface {
    11  	Batched
    12  	BLAS
    13  }
    14  
    15  // BatchedDevice is the superset of BatchedBLAS and the batched CUDA workflow.
    16  type BatchedDevice interface {
    17  	Batched
    18  	Retval() interface{}
    19  	Errors() error
    20  }