The protocols use these base tensors for their operations. Some protocol operations are supported by these tensors.
Tensor
Protocol
Number of parties
Shares per party
ReplicatedSharedTensor
ABY3, Falcon
N
N - 1
ShareTensor
FSS, SPDZ
N
1
Visibility
Operation
Tensor
Number of Parties
Public & Private
Addition
----------------+
Subtraction
ReplicatedShareTensor
ShareTensor
-------------------------+
ReplicatedShareTensor
ShareTensor
-----------------------+
Public
Multiplication
ReplicatedShareTensor
ShareTensor
Visibility
Operation
Protocol
Number of Parties
Public & Private
Mult, matmul, conv2d, conv2d_transpose
-----------------------------------------+
Equal to
-----------------------------------------+
Non Equal to
-----------------------------------------+
Greater than
-----------------------------------------+
Greater or Equal than
-----------------------------------------+
Less than
-----------------------------------------+
Less or Equal than
-----------------------------------------+
XOR
-----------------------------------------+
Exponential
-----------------------------------------+
Log
-----------------------------------------+
Max
-----------------------------------------+
Reciprocal
-----------------------------------------+
Relu
-----------------------------------------+
Sigmoid
-----------------------------------------+
Softmax
-----------------------------------------+
Tanh
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
--------------+
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
-----------------------+
2
Public
Division
-----------------------------------------+
XOR
--------------+
2+
-----------------------+
3
Supported Neural Network Layers
Layer
Protocol
Conv2d
Falcon, SPDZ
Linear
Falcon, SPDZ