Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tenseal/cpp/tensors/ckkstensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ CKKSTensor::CKKSTensor(const shared_ptr<TenSEALContext>& ctx,

vector<Ciphertext> enc_data;
vector<size_t> enc_shape = tensor.shape();
auto data = tensor.batch(0);
decltype(tensor.batch(0)) data;
size_t size;
if (batch) {
data = tensor.batch(0);
_batch_size = enc_shape[0];
enc_shape.erase(enc_shape.begin());
size = tensor.batch(0).size();
Expand Down