Skip to content

Commit

Permalink
Merge pull request #239 from kaih70/master
Browse files Browse the repository at this point in the history
fix link and ut bugs
  • Loading branch information
qjing666 authored Nov 30, 2021
2 parents a6f8664 + 395d2df commit 995faa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions core/paddlefl_mpc/mpc_protocol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,18 @@ if (WITH_GPU)
cuda_add_library(mpc_protocol_cu SHARED ${PROTO_SRCS_CU})
endif()

if (WITH_GRPC)
target_link_libraries(mpc_protocol transport_o grpc++)
cc_test(mesh_network_grpc_test SRCS network/mesh_network_grpc_test.cc DEPS mpc_protocol)
endif()

if (WITH_GPU)
target_link_libraries(mpc_protocol ${GRPC_DEPS} gloo hiredis privc3 fluid_framework mpc_protocol_cu)
target_link_libraries(mpc_protocol_cu ${GRPC_DEPS} gloo hiredis privc3 common_cu)
else ()
target_link_libraries(mpc_protocol ${GRPC_DEPS} gloo hiredis privc3 privc_o fluid_framework)
endif()

if (WITH_GRPC)
target_link_libraries(mpc_protocol transport_o)
cc_test(mesh_network_grpc_test SRCS network/mesh_network_grpc_test.cc DEPS mpc_protocol)
endif()
cc_test(mesh_network_test SRCS network/mesh_network_test.cc DEPS mpc_protocol)
if (NOT WITH_GPU)
cc_test(mpc_protocol_test SRCS mpc_protocol_test.cc DEPS mpc_protocol privc)
Expand Down
2 changes: 1 addition & 1 deletion python/paddle_fl/mpc/tests/unittests/test_op_batch_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def batch_norm(self, **kwargs):
def test_batch_norm(self):

data_1 = np.array(
[[10, 10, 10], [50, 50, 50]]).astype('float32')
[[1, 1, 1], [5, 5, 5]]).astype('float32')

expected_out = np.array(
[[-1, -1, -1], [1, 1, 1]]).astype('float32')
Expand Down

0 comments on commit 995faa8

Please sign in to comment.