Versions in this module Expand all Collapse all v1 v1.0.0 Aug 16, 2018 Changes in this version + func BuildDataTensorRaw(b *fb.Builder, data []byte, shape []int64, dt uint8) fb.UOffsetT + func BuildStringTensorRaw(b *fb.Builder, strs []string, shape []int64) fb.UOffsetT + func BuildTensorContiguous(b *fb.Builder, val interface{}) (fb.UOffsetT, error) + func BuildTensorNonContiguous(b *fb.Builder, val interface{}) (fb.UOffsetT, error) + func BuildTensorSafe(b *fb.Builder, val interface{}) (fb.UOffsetT, error) + func Handler(c *appContext, w http.ResponseWriter, r *http.Request) error + func ListenAndServe(addr string, handler http.Handler) error + func MultiRemote(client *http.Client, uri string, ins []interface{}, ...) ([]interface{}, error) + func NativeTensorToNative(t *NativeTensor) (interface{}, error) + func Remote(client *http.Client, uri string, in interface{}, inputName, outputName string) (interface{}, error) + func Serialize(b *fb.Builder, obj fb.UOffsetT) []byte + func Serve(listen string, cache bool, apply interface{}, inShapes, outShapes [][]int64) error + func ServeRaw(opts *ServeRawOptions) error + func ShapeType(val reflect.Value) (shape []int64, num int64, size int64, dt uint8, err error) + func TensorToNative(t *graphpipefb.Tensor) (interface{}, error) + type Applier func(*RequestContext, string, map[string]*NativeTensor, []string) ([]*NativeTensor, error) + type Error interface + Status func() int + type GetHandlerFunc func(http.ResponseWriter, *http.Request, []byte) error + type NativeIOMetadata struct + Description string + Name string + Shape []int64 + Type uint8 + type NativeMetadataResponse struct + Description string + Inputs []NativeIOMetadata + Name string + Outputs []NativeIOMetadata + Server string + Version string + func (meta *NativeMetadataResponse) Build(b *fb.Builder) fb.UOffsetT + type NativeTensor struct + Data []byte + Shape []int64 + StringVals []string + Type uint8 + func MultiRemoteRaw(client *http.Client, uri string, inputs []*NativeTensor, ...) ([]*NativeTensor, error) + func TensorToNativeTensor(t *graphpipefb.Tensor) *NativeTensor + func (nt *NativeTensor) Build(b *fb.Builder) fb.UOffsetT + func (nt *NativeTensor) InitSimple(val interface{}) error + func (nt *NativeTensor) InitWithData(data []byte, shape []int64, dt uint8) error + func (nt *NativeTensor) InitWithStringVals(stringVals []string, shape []int64) error + type Nt struct + type RequestContext struct + CleanupFunc func() + func (ctx *RequestContext) BuildTensor(val interface{}) (fb.UOffsetT, error) + func (ctx *RequestContext) IsAlive() bool + func (ctx *RequestContext) SetDead() + type ServeRawOptions struct + Apply Applier + CacheFile string + DefaultInputs []string + DefaultOutputs []string + GetHandler GetHandlerFunc + Listen string + Meta *NativeMetadataResponse + func BuildSimpleApply(apply interface{}, inShapes, outShapes [][]int64) *ServeRawOptions + type SimpleApplier func(interface{}) (interface{}, error) + type StatusError struct + Code int + Err error + func (se StatusError) Error() string + func (se StatusError) Status() int