@@ -413,42 +413,39 @@ __global__ void cuda_kernel(F f, args_t... args) {
413413// operators
414414// ----------------------------------------------------------------------------
415415
416- template <typename T>
417- struct cuda_plus : public std ::binary_function<T, T, T> {
416+ template <class T >
417+ struct cuda_plus {
418418 __device__ T operator ()(T a, T b) const { return a + b; }
419419};
420420
421- template <typename T>
422- struct cuda_minus : public std ::binary_function<T, T, T> {
421+ template <class T >
422+ struct cuda_minus {
423423 __device__ T operator ()(T a, T b) const { return a - b; }
424424};
425425
426- template <typename T>
427- struct cuda_multiplies : public std ::binary_function<T, T, T> {
426+ template <class T >
427+ struct cuda_multiplies {
428428 __device__ T operator ()(T a, T b) const { return a * b; }
429429};
430430
431- template <typename T>
432- struct cuda_maximum : public std ::binary_function<T, T, T> {
431+ template <class T >
432+ struct cuda_maximum {
433433 __device__ T operator ()(T a, T b) const { return a > b ? a : b; }
434434};
435435
436- template <typename T>
437- struct cuda_minimum : public std ::binary_function<T, T, T> {
436+ template <class T >
437+ struct cuda_minimum {
438438 __device__ T operator ()(T a, T b) const { return a < b ? a : b; }
439439};
440440
441- template <typename T>
442- struct cuda_less : public std ::binary_function<T, T, T> {
441+ template <class T >
442+ struct cuda_less {
443443 __device__ T operator ()(T a, T b) const { return a < b; }
444444};
445445
446- template <typename T>
447- struct cuda_greater : public std ::binary_function<T, T, T> {
446+ template <class T >
447+ struct cuda_greater {
448448 __device__ T operator ()(T a, T b) const { return a > b; }
449449};
450450
451451} // end of namespace tf -----------------------------------------------------
452-
453-
454-
0 commit comments