|
|
|
@ -8,22 +8,22 @@ if(WITH_GPU)
|
|
|
|
|
nv_library(softmax SRCS softmax.cc softmax.cu DEPS operator)
|
|
|
|
|
nv_library(cross_entropy SRCS cross_entropy.cc cross_entropy.cu DEPS operator)
|
|
|
|
|
nv_library(pooling SRCS pooling.cc pooling.cu DEPS device_context)
|
|
|
|
|
nv_library(maxouting SRCS maxouting.cc maxouting.cu DEPS device_context)
|
|
|
|
|
nv_library(vol2col SRCS vol2col.cc vol2col.cu DEPS device_context)
|
|
|
|
|
nv_library(context_project SRCS context_project.cc context_project.cu DEPS device_context)
|
|
|
|
|
nv_library(sequence2batch SRCS sequence2batch.cc sequence2batch.cu DEPS device_context)
|
|
|
|
|
nv_library(lstm_compute SRCS lstm_compute.cc lstm_compute.cu DEPS device_context activation_functions)
|
|
|
|
|
nv_library(maxouting SRCS maxouting.cc maxouting.cu DEPS device_context)
|
|
|
|
|
else()
|
|
|
|
|
cc_library(math_function SRCS math_function.cc im2col.cc DEPS cblas device_context operator)
|
|
|
|
|
cc_library(selected_rows_functor SRCS selected_rows_functor.cc DEPS selected_rows math_function)
|
|
|
|
|
cc_library(softmax SRCS softmax.cc DEPS operator)
|
|
|
|
|
cc_library(cross_entropy SRCS cross_entropy.cc DEPS operator)
|
|
|
|
|
cc_library(pooling SRCS pooling.cc DEPS device_context)
|
|
|
|
|
cc_library(maxouting SRCS maxouting.cc DEPS device_context)
|
|
|
|
|
cc_library(vol2col SRCS vol2col.cc DEPS device_context)
|
|
|
|
|
cc_library(context_project SRCS context_project.cc DEPS device_context)
|
|
|
|
|
cc_library(sequence2batch SRCS sequence2batch.cc DEPS device_context)
|
|
|
|
|
cc_library(lstm_compute SRCS lstm_compute.cc DEPS device_context activation_functions)
|
|
|
|
|
cc_library(maxouting SRCS maxouting.cc DEPS device_context)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
cc_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor)
|
|
|
|
|