|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprotobuf.ComputeServiceProtos.Compute
caffeinterface.CaffeComputeRpc
public class CaffeComputeRpc
Provides a Service that serves CAFFE classes. Moreover, has methods
to convert between the ComputeServiceProtos.Matrix class defined as a protocol buffer for
data transfer, and colt matrices.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class protobuf.ComputeServiceProtos.Compute |
|---|
ComputeServiceProtos.Compute.Stub |
| Constructor Summary | |
|---|---|
CaffeComputeRpc()
|
|
| Method Summary | |
|---|---|
void |
compute(com.google.protobuf.RpcController controller,
ComputeServiceProtos.Matrix request,
com.google.protobuf.RpcCallback<ComputeServiceProtos.Matrix> done)
Converts the given ComputeServiceProtos.Matrix into a DoubleMatrix2D, then invokes the CaffeToVectorFunction served by this service on the result. |
CaffeToVectorFunction |
getVectorFunction()
Returns the CaffeToVectorFunction provided by this service. |
static cern.colt.matrix.DoubleMatrix2D |
makeDoubleMatrix(ComputeServiceProtos.Matrix request)
Converts the given protocol buffer ComputeServiceProtos.Matrix into a
DoubleMatrix2D in colt. |
static ComputeServiceProtos.Matrix |
makeProtoMatrix(cern.colt.matrix.DoubleMatrix2D outputs)
Converts a colt DoubleMatrix2D into a protocol buffer
ComputeServiceProtos.Matrix. |
void |
setVectorFunction(CaffeToVectorFunction vectorFunction)
Sets the CaffeToVectorFunction to be provided by this service. |
| Methods inherited from class protobuf.ComputeServiceProtos.Compute |
|---|
callMethod, getDescriptor, getDescriptorForType, getRequestPrototype, getResponsePrototype, newStub |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CaffeComputeRpc()
| Method Detail |
|---|
public static cern.colt.matrix.DoubleMatrix2D makeDoubleMatrix(ComputeServiceProtos.Matrix request)
ComputeServiceProtos.Matrix into a
DoubleMatrix2D in colt.
request - the given ComputeServiceProtos.Matrix.
public static ComputeServiceProtos.Matrix makeProtoMatrix(cern.colt.matrix.DoubleMatrix2D outputs)
DoubleMatrix2D into a protocol buffer
ComputeServiceProtos.Matrix.
outputs - the given DoubleMatrix2D.
public void compute(com.google.protobuf.RpcController controller,
ComputeServiceProtos.Matrix request,
com.google.protobuf.RpcCallback<ComputeServiceProtos.Matrix> done)
done method passed in.
compute in class ComputeServiceProtos.ComputeComputeServiceProtos.Compute.compute(com.google.protobuf.RpcController,
protobuf.ComputeServiceProtos.Matrix, com.google.protobuf.RpcCallback)public CaffeToVectorFunction getVectorFunction()
CaffeToVectorFunction provided by this service.
public void setVectorFunction(CaffeToVectorFunction vectorFunction)
vectorFunction - the given vectorFunction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||