|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcaffeinterface.CaffeClient
public class CaffeClient
Provides functionality to run CAFFE classes in client-server mode. This is the client side of things.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_HOST
The default host is localhost. |
static int |
DEFAULT_PORT
The default port. |
| Constructor Summary | |
|---|---|
CaffeClient()
Creates a CaffeClient to connect to the default port on localhost. |
|
CaffeClient(java.lang.String host)
Creates a CaffeClient to connect to the requested hosted host using the default port. |
|
CaffeClient(java.lang.String host,
int port)
Creates a CaffeClient to connect to the requested host on the requested port. |
|
| Method Summary | |
|---|---|
void |
compute(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix2D y)
Calls the Compute#compute(RpcController, Matrix, RpcCallback)
method on the CAFFE class service hosted remotely. |
static void |
main(java.lang.String[] args)
|
void |
run(ComputeServiceProtos.Matrix parameter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_HOST
localhost. If you want to change this default,
create a subclass, but this class provides a constructor argument to listen
on another port. That's the preferred method.
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public CaffeClient()
localhost.
public CaffeClient(java.lang.String host)
host - the requested host.
public CaffeClient(java.lang.String host,
int port)
host - the specified host.port - the specified port.| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void compute(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix2D y)
Compute#compute(RpcController, Matrix, RpcCallback)
method on the CAFFE class service hosted remotely.
x - the matrix of inputs, row-wise.y - the matrix to store the results, again row-wise.public void run(ComputeServiceProtos.Matrix parameter)
run in interface com.google.protobuf.RpcCallback<ComputeServiceProtos.Matrix>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||