MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / get_binary_input_file

Method get_binary_input_file

Compiler/program.py:675–681  ·  view source on GitHub ↗
(self, player)

Source from the content-addressed store, hash-verified

673 self.public_input_file.write("%s\n" % str(x))
674
675 def get_binary_input_file(self, player):
676 key = player, 'bin'
677 if key not in self.input_files:
678 filename = 'Player-Data/Input-Binary-P%d-0' % player
679 print('Writing binary data to', filename)
680 self.input_files[key] = open(filename, 'wb')
681 return self.input_files[key]
682
683 def set_bit_length(self, bit_length):
684 """Change the integer bit length for non-linear functions."""

Callers 1

input_tensor_viaMethod · 0.80

Calls 1

printFunction · 0.85

Tested by

no test coverage detected