segment_reduction_ops_gpu.cu.h error: no instance of overloaded function "tensorflow::min"/"tensorflow::max" matches the argument list
When Bazel try to compile tensorflow/core/kernels/segment_reduction_ops_gpu_2.cu.cc, no suitable constructor exists to convert error will also happened.

> .\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no suitable constructor exists to convert from "int" to "tensorflow::AlignedVector<int, 4>"
>           detected during:
>             instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=int]"
> (233): here
>             instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int
> , Tsegmentids=int]"
> (570): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
> tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<int, 4>, Tv
> ec=tensorflow::AlignedVector<int, 4>, Tindex=int, Tsegmentids=int, ReduceOp=tensorflow::functor::Max, Tinit=int]"
> (617): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
> duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, vec_size=4, T=int, Tindex=int, Tsegmentids=int, Reduce
> Op=tensorflow::functor::Max]"
> .\tensorflow/core/util/gpu_kernel_helper.h(329): here
>             instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=4LL, Functor=tensorf
> low::SegmentReduceGPUVectorized<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, int &, int &, int &, tensorflow::functor::Max &, int &, int &, __nv_bool &, __nv_bool &, co
> nst tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]"
> .\tensorflow/core/util/gpu_kernel_helper.h(364): here
>             instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=tsl::int32, Functor=tensorflow::SegmentReduceGPUVectorize
> d<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, tsl::int32 &, tsl::int32 &, tsl::int32 &, tensorflow::functor::Max &, tsl::int32 &, tsl::int32 &, __nv_bool &, __nv_bool
> &, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]"
> (647): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
> T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, T=tsl::int32, Tindex=tsl::int32, Tsegmentids=tsl::int32, Reduc
> eOp=tensorflow::functor::Max]"
> (871): here
>             instantiation of "void tensorflow::functor::UnsortedSegmentFunctor<tensorflow::functor::GPUDevice, T, Index, InitialValueF, ReductionF>::operator()(tensorflow::OpKernel
> Context *, const tensorflow::TensorShape &, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::ConstTensor, tensorflow::TTypes
> <T, 2, Eigen::DenseIndex>::Tensor) [with T=tsl::int32, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<tsl::int32>, ReductionF=tensorflow::functor::Max]"
> E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_2.cu.cc(45): here
> 
> .\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no suitable constructor exists to convert from "int" to "tensorflow::AlignedVector<int, 4>"
>           detected during:
>             instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=int]"
> (233): here
>             instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int
> , Tsegmentids=int]"
> (570): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
> tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<int, 4>, Tv
> ec=tensorflow::AlignedVector<int, 4>, Tindex=int, Tsegmentids=int, ReduceOp=tensorflow::functor::Max, Tinit=int]"
> (617): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
> duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, vec_size=4, T=int, Tindex=int, Tsegmentids=int, Reduce
> Op=tensorflow::functor::Max]"
> .\tensorflow/core/util/gpu_kernel_helper.h(329): here
>             instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=4LL, Functor=tensorf
> low::SegmentReduceGPUVectorized<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, int &, int &, int &, tensorflow::functor::Max &, int &, int &, __nv_bool &, __nv_bool &, co
> nst tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]"
> .\tensorflow/core/util/gpu_kernel_helper.h(364): here
>             instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=tsl::int32, Functor=tensorflow::SegmentReduceGPUVectorize
> d<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, tsl::int32 &, tsl::int32 &, tsl::int32 &, tensorflow::functor::Max &, tsl::int32 &, tsl::int32 &, __nv_bool &, __nv_bool
> &, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]"
> (647): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
> T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, T=tsl::int32, Tindex=tsl::int32, Tsegmentids=tsl::int32, Reduc
> eOp=tensorflow::functor::Max]"
> (871): here
>             instantiation of "void tensorflow::functor::UnsortedSegmentFunctor<tensorflow::functor::GPUDevice, T, Index, InitialValueF, ReductionF>::operator()(tensorflow::OpKernel
> Context *, const tensorflow::TensorShape &, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::ConstTensor, tensorflow::TTypes
> <T, 2, Eigen::DenseIndex>::Tensor) [with T=tsl::int32, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<tsl::int32>, ReductionF=tensorflow::functor::Max]"
> E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_2.cu.cc(45): here
> 
> .\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no suitable constructor exists to convert from "int" to "tensorflow::AlignedVector<int, 4>"
>           detected during:
>             instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=int]"
> (233): here
>             instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int
> , Tsegmentids=int]"
> (570): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
> tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<int, 4>, Tv
> ec=tensorflow::AlignedVector<int, 4>, Tindex=int, Tsegmentids=int, ReduceOp=tensorflow::functor::Max, Tinit=int]"
> (617): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
> duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, vec_size=4, T=int, Tindex=int, Tsegmentids=int, Reduce
> Op=tensorflow::functor::Max]"
> .\tensorflow/core/util/gpu_kernel_helper.h(329): here
>             instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=4LL, Functor=tensorf
> low::SegmentReduceGPUVectorized<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, int &, int &, int &, tensorflow::functor::Max &, int &, int &, __nv_bool &, __nv_bool &, co
> nst tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]"
> .\tensorflow/core/util/gpu_kernel_helper.h(364): here
>             instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=tsl::int32, Functor=tensorflow::SegmentReduceGPUVectorize
> d<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, tsl::int32 &, tsl::int32 &, tsl::int32 &, tensorflow::functor::Max &, tsl::int32 &, tsl::int32 &, __nv_bool &, __nv_bool
> &, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]"
> (647): here
>             instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
> T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, T=tsl::int32, Tindex=tsl::int32, Tsegmentids=tsl::int32, Reduc
> eOp=tensorflow::functor::Max]"
> (871): here
>             instantiation of "void tensorflow::functor::UnsortedSegmentFunctor<tensorflow::functor::GPUDevice, T, Index, InitialValueF, ReductionF>::operator()(tensorflow::OpKernel
> Context *, const tensorflow::TensorShape &, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::ConstTensor, tensorflow::TTypes
> <T, 2, Eigen::DenseIndex>::Tensor) [with T=tsl::int32, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<tsl::int32>, ReductionF=tensorflow::functor::Max]"
> E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_2.cu.cc(45): here
 I have found a way to clear some bugs. Number of errors have reduced to 34 for `segment_reduction_ops_gpu_0.cu.cc`. I need to know for the following CUDA template in `tensorflow/core/util/gpu_kernel_helper.h`:
```
template <typename T>
__host__ __device__ inline const T& tf_max(const T& x, const T& y) {
  return x < y ? y : x;
}
```
Can I use it to compare two `tsl::int32` values directly using [`__device__​ int max ( const int  a, const int  b )`](https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH__INT.html#group__CUDA__MATH__INT_1gcd95edd79e83ba55edb31cce43f4de42)? Same errors occur in 2.13 branch. We better resolve it before rc0 release. If you insist to reproduce the errors before answering my question, save the following as a `.sh` script, change paths correspondingly, then run it after bazel linked CUDA headers. The headers will be ready after approximately 5000th-6000th actions.

```
export MSYS_NO_PATHCONV=1
export MSYS2_ARG_CONV_EXCL="*"
export PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/bin:$PATH"
export PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/extras/CUPTI/lib64:$PATH"
export PATH="/c/Users/tensorflow/anaconda3:$PATH"
export CUDA_TOOLKIT_PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8"
export INCLUDE="/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/include;/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/ATLMFC/include;/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/VS/include;/c/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/ucrt;/c/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/um;/c/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared;/c/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/winrt;/c/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/cppwinrt"
export LIB="/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/ATLMFC/lib/x64;/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/lib/x64;/c/Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/ucrt/x64;/c/Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/um/x64"
export PATH="/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/HostX64/x64;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/VC/VCPackages;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/TestWindow;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer;/c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/bin/Roslyn;/c/Program Files/Microsoft Visual Studio/2022/Community/Team Tools/Performance Tools/x64;/c/Program Files/Microsoft Visual Studio/2022/Community/Team Tools/Performance Tools;/c/Program Files (x86)/HTML Help Workshop;/c/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64;/c/Program Files (x86)/Windows Kits/10/bin/x64;/c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64;/c/Windows/Microsoft.NET/Framework64/v4.0.30319;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/Tools;/c/Windows/system32;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja;/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/VC/Linux/bin/ConnectionManagerExe:$PATH"
export PWD="/proc/self/cwd"
export PYTHON_BIN_PATH="/c/Users/tensorflow/anaconda3/python.exe"
export PYTHON_LIB_PATH="/c/Users/tensorflow/anaconda3/lib/site-packages"
export RUNFILES_MANIFEST_ONLY=1
export TEMP="/c/msys64/tmp"
export TF2_BEHAVIOR=1
export TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0,8.6
export TMP="/c/msys64/tmp"
cd E:/_bazel_tensorflow/kxpxxayx/execroot/org_tensorflow
/c/Users/tensorflow/anaconda3/python.exe -B external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.py /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/bin /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/nsync /Ibazel-out/x64_windows-opt/bin/external/nsync /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/com_google_protobuf /Ibazel-out/x64_windows-opt/bin/external/com_google_protobuf /Iexternal/gif /Ibazel-out/x64_windows-opt/bin/external/gif /Iexternal/libjpeg_turbo /Ibazel-out/x64_windows-opt/bin/external/libjpeg_turbo /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/bin/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-opt/bin/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/bin/external/highwayhash /Iexternal/zlib /Ibazel-out/x64_windows-opt/bin/external/zlib /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-opt/bin/external/snappy /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Iexternal/local_config_rocm /Ibazel-out/x64_windows-opt/bin/external/local_config_rocm /Iexternal/local_config_tensorrt /Ibazel-out/x64_windows-opt/bin/external/local_config_tensorrt /Iexternal/cudnn_frontend_archive /Ibazel-out/x64_windows-opt/bin/external/cudnn_frontend_archive /Iexternal/llvm-project /Ibazel-out/x64_windows-opt/bin/external/llvm-project /Iexternal/llvm_terminfo /Ibazel-out/x64_windows-opt/bin/external/llvm_terminfo /Iexternal/llvm_zlib /Ibazel-out/x64_windows-opt/bin/external/llvm_zlib /Iexternal/curl /Ibazel-out/x64_windows-opt/bin/external/curl /Iexternal/boringssl /Ibazel-out/x64_windows-opt/bin/external/boringssl /Iexternal/jsoncpp_git /Ibazel-out/x64_windows-opt/bin/external/jsoncpp_git /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/_virtual_includes/cuda_headers_virtual /Ibazel-out/x64_windows-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/_virtual_includes/cudnn_header /Ibazel-out/x64_windows-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinAttributeInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinAttributesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinDialectIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinLocationAttributesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinOpsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinTypeInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/BuiltinTypesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/CallOpInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/CastOpInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/FunctionInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/InferTypeOpInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/OpAsmInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/RegionKindInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/SideEffectInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/SymbolInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/TensorEncodingIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ArithBaseIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ArithCanonicalizationIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ArithOpsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ArithOpsInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/InferIntRangeInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/VectorInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ControlFlowInterfacesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ControlFlowOpsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/FuncIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/AsmParserTokenKinds /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/QuantOpsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/LoopLikeInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/DialectUtilsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ViewLikeInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/PDLOpsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/PDLTypesIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/PDLInterpOpsIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/ConversionPassIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/TransformsPassIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/DerivedAttributeOpInterfaceIncGen /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/_virtual_includes/RuntimeVerifiableOpInterfaceIncGen /Iexternal/nsync/public /Ibazel-out/x64_windows-opt/bin/external/nsync/public /Ithird_party/eigen3/mkl_include /Ibazel-out/x64_windows-opt/bin/third_party/eigen3/mkl_include /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/com_google_protobuf/src /Ibazel-out/x64_windows-opt/bin/external/com_google_protobuf/src /Iexternal/gif /Ibazel-out/x64_windows-opt/bin/external/gif /Iexternal/gif/windows /Ibazel-out/x64_windows-opt/bin/external/gif/windows /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive/src /Iexternal/zlib /Ibazel-out/x64_windows-opt/bin/external/zlib /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /Iexternal/local_config_rocm/rocm /Ibazel-out/x64_windows-opt/bin/external/local_config_rocm/rocm /Iexternal/local_config_rocm/rocm/rocm/include /Ibazel-out/x64_windows-opt/bin/external/local_config_rocm/rocm/rocm/include /Iexternal/local_config_rocm/rocm/rocm/include/rocrand /Ibazel-out/x64_windows-opt/bin/external/local_config_rocm/rocm/rocm/include/rocrand /Iexternal/local_config_rocm/rocm/rocm/include/roctracer /Ibazel-out/x64_windows-opt/bin/external/local_config_rocm/rocm/rocm/include/roctracer /Iexternal/llvm-project/llvm/include /Ibazel-out/x64_windows-opt/bin/external/llvm-project/llvm/include /Iexternal/llvm-project/mlir/include /Ibazel-out/x64_windows-opt/bin/external/llvm-project/mlir/include /Iexternal/curl/include /Ibazel-out/x64_windows-opt/bin/external/curl/include /Iexternal/boringssl/src/include /Ibazel-out/x64_windows-opt/bin/external/boringssl/src/include /Iexternal/jsoncpp_git/include /Ibazel-out/x64_windows-opt/bin/external/jsoncpp_git/include /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DTF_USE_SNAPPY /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS /D_SCL_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS /DUNICODE /D_UNICODE /DLTDL_SHLIB_EXT=".dll" /DLLVM_PLUGIN_EXT=".dll" /DLLVM_NATIVE_ARCH="X86" /DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser /DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter /DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler /DLLVM_NATIVE_TARGET=LLVMInitializeX86Target /DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo /DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC /DLLVM_NATIVE_TARGETMCA=LLVMInitializeX86TargetMCA /DLLVM_HOST_TRIPLE="x86_64-pc-win32" /DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-pc-win32" /DLLVM_VERSION_MAJOR=17 /DLLVM_VERSION_MINOR=0 /DLLVM_VERSION_PATCH=0 /DLLVM_VERSION_STRING="17.0.0git" /D__STDC_LIMIT_MACROS /D__STDC_CONSTANT_MACROS /D__STDC_FORMAT_MACROS /DBLAKE3_USE_NEON=0 /DBLAKE3_NO_AVX2 /DBLAKE3_NO_AVX512 /DBLAKE3_NO_SSE2 /DBLAKE3_NO_SSE41 /DCURL_STATICLIB /showIncludes /MD /O2 /DNDEBUG /W0 /Zc:__cplusplus /D_USE_MATH_DEFINES /d2ReducedOptimizeHugeFunctions -DWIN32_LEAN_AND_MEAN -DNOGDI /Zc:preprocessor /arch:AVX2 /std:c++17 -x cuda -DGOOGLE_CUDA=1 --cuda-gpu-arch=sm_35 --cuda-include-ptx=sm_70 --cuda-gpu-arch=sm_70  --cuda-include-ptx=sm_86 --cuda-gpu-arch=sm_86 -Xcuda-fatbinary=--compress-all -DGOOGLE_CUDA=1 -DTENSORFLOW_USE_NVCC=1 -DTENSORFLOW_USE_XLA=1 -DGOOGLE_TENSORRT=1 -DINTEL_MKL -DTENSORFLOW_MONOLITHIC_BUILD /DPLATFORM_WINDOWS /DEIGEN_HAS_C99_MATH /DTENSORFLOW_USE_EIGEN_THREADPOOL /DEIGEN_AVOID_STL_ARRAY /Iexternal/gemmlowp /wd4018 /wd4577 /DNOGDI /DTF_COMPILE_LIBRARY -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/core/kernels/_objs/segment_reduction_ops_gpu/segment_reduction_ops_gpu_0.cu.obj /c tensorflow/core/kernels/segment_reduction_ops_gpu_0.cu.cc
``` @mraunak, Could you please take a look into this. Thanks https://github.com/google/tsl/blob/35680b213852096df805c16cfcc92946c2040f38/tsl/platform/default/integral_types.h#L28 is where the type is documented @sachinprasadhs @mraunak @learning-to-play I have found out a way to fix some compilation errors. Screenshots have been uploaded [here](https://mycuhk-my.sharepoint.com/:f:/g/personal/1155144829_link_cuhk_edu_hk/Ej0v7N67oDZAuC6XZuuiiFUBWJbXuYnmDKqTE1adplcIUQ?e=hn0bhx).

After applied the changes, TSL complex operator resolution errors will happened as the log shown. [`DEFINE_BINARY_UPDATE_OPERATOR`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/util/gpu_kernel_helper.h#L257) cannot choose the Eigen complex operators during compilation. Since the errors are tricky, I am not able to fix. Please also commit the changes to 2.13 and 2.12 branch. Hi @learning-to-play, I think TensorFlow GPU or Nvidia Team would be able to resolve this issue as the errors involve CUDA files
Hi @johnnkp, thank you for debugging and resolving intermittent errors @mraunak I have uploaded patch screenshots [here](https://mycuhk-my.sharepoint.com/:f:/g/personal/1155144829_link_cuhk_edu_hk/Ej0v7N67oDZAuC6XZuuiiFUBWJbXuYnmDKqTE1adplcIUQ?e=hn0bhx). If you are concerned that these changes may break other builds, add macros to make them as Windows specific.  Hi @johnnkp, Thank you very much for the solution. could you please create a PR? It would be helpful to review it. PR https://github.com/tensorflow/tensorflow/pull/61339 is merged. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60397">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60397">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

source

### Tensorflow Version

2.12.0

### Custom Code

Yes

### OS Platform and Distribution

Windows 10 1909

### Mobile device

_No response_

### Python version

Anaconda 2023.03

### Bazel version

5.3.0

### GCC/Compiler version

Visual Studio 2022 (build tools 14.35) + msys2-x86_64-20230318

### CUDA/cuDNN version

CUDA 11.8 + CUDNN 8.6.0 + TensorRT 8.5.3

### GPU model and memory

GTX 750 Ti 2GB

### Current Behaviour?

From previous discussion in https://github.com/tensorflow/tensorflow/issues/59918 and https://github.com/tensorflow/tensorflow/issues/59905, segment_reduction_ops_gpu.cu.h and other GPU header files have function overload errors when using MSVC + msys2 to compile. Run bazel command again just mean shuffle the compile action sequence. The compiler will reach the same errors when starts to compile segment_reduction_ops_gpu_x.cu.cc.

### Standalone code to reproduce the issue

```shell
1. download https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.12.0.zip and extract
2. comment out Windows CUDA build rejection code in configure.py
3. run `python configure.py` to configure Windows CUDA build
4. run `bazel build --config=opt --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package`
```


### Relevant log output

```shell
.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=Eigen::half, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicProdOpGpu, AtomicReductionF=tensorflow::AtomicProdOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=Eigen::half, Index=tsl::int32, InitialValueF=tensorflow::functor::One<Eigen::half>, EmptySegmentValueF=tensorflow::functor::One<Ei
gen::half>, ReductionF=tensorflow::functor::Prod]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=Eigen::half, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMinOpGpu, AtomicReductionF=tensorflow::AtomicMinOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=Eigen::half, Index=tsl::int32, InitialValueF=tensorflow::functor::Highest<Eigen::half>, EmptySegmentValueF=tensorflow::functor::Ze
ro<Eigen::half>, ReductionF=tensorflow::functor::Min]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=Eigen::half, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMaxOpGpu, AtomicReductionF=tensorflow::AtomicMaxOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=Eigen::half, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<Eigen::half>, EmptySegmentValueF=tensorflow::functor::Zer
o<Eigen::half>, ReductionF=tensorflow::functor::Max]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=tensorflow::bfloat16, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicSumOpGpu, AtomicReductionF=tensorflow::AtomicSumOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=tensorflow::bfloat16, Index=tsl::int32, InitialValueF=tensorflow::functor::Zero<tensorflow::bfloat16>, EmptySegmentValueF=tensorfl
ow::functor::Zero<tensorflow::bfloat16>, ReductionF=tensorflow::functor::Sum]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(151): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentMeanNormalizeKernel(SegmentId, Index, const Index *, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=tensorflow::bfloat16
]"
(166): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentMeanNormalizeKernel(const tensorflow::GPUDevice &, SegmentId, Index, const Index *, T *) [with SegmentId=tsl::int
32, Index=tsl::int32, T=tensorflow::bfloat16]"
(770): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=tensorflow::bfloat16, Index=tsl::int32, InitialValueF=tensorflow::functor::Zero<tensorflow::bfloat16>, EmptySegmentValueF=tensorfl
ow::functor::Zero<tensorflow::bfloat16>, ReductionF=tensorflow::functor::Sum]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=tensorflow::bfloat16, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicProdOpGpu, AtomicReductionF=tensorflow::AtomicProdOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=tensorflow::bfloat16, Index=tsl::int32, InitialValueF=tensorflow::functor::One<tensorflow::bfloat16>, EmptySegmentValueF=tensorflo
w::functor::One<tensorflow::bfloat16>, ReductionF=tensorflow::functor::Prod]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=tensorflow::bfloat16, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMinOpGpu, AtomicReductionF=tensorflow::AtomicMinOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=tensorflow::bfloat16, Index=tsl::int32, InitialValueF=tensorflow::functor::Highest<tensorflow::bfloat16>, EmptySegmentValueF=tenso
rflow::functor::Zero<tensorflow::bfloat16>, ReductionF=tensorflow::functor::Min]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=tensorflow::bfloat16, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMaxOpGpu, AtomicReductionF=tensorflow::AtomicMaxOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=tensorflow::bfloat16, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<tensorflow::bfloat16>, EmptySegmentValueF=tensor
flow::functor::Zero<tensorflow::bfloat16>, ReductionF=tensorflow::functor::Max]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=float, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicSumOpGpu, AtomicReductionF=tensorflow::AtomicSumOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::Zero<float>, EmptySegmentValueF=tensorflow::functor::Zero<float>, Redu
ctionF=tensorflow::functor::Sum]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(151): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentMeanNormalizeKernel(SegmentId, Index, const Index *, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=float]"
(166): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentMeanNormalizeKernel(const tensorflow::GPUDevice &, SegmentId, Index, const Index *, T *) [with SegmentId=tsl::int
32, Index=tsl::int32, T=float]"
(770): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::Zero<float>, EmptySegmentValueF=tensorflow::functor::Zero<float>, Redu
ctionF=tensorflow::functor::Sum]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=float, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicProdOpGpu, AtomicReductionF=tensorflow::AtomicProdOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::One<float>, EmptySegmentValueF=tensorflow::functor::One<float>, Reduct
ionF=tensorflow::functor::Prod]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=float, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMinOpGpu, AtomicReductionF=tensorflow::AtomicMinOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::Highest<float>, EmptySegmentValueF=tensorflow::functor::Zero<float>, R
eductionF=tensorflow::functor::Min]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(54): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (float, const float)
          detected during:
            instantiation of "void tensorflow::NonAtomicMinOpGpu::operator()(T *, const T &) [with T=float]"
(125): here
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=float, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMinOpGpu, AtomicReductionF=tensorflow::AtomicMinOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::Highest<float>, EmptySegmentValueF=tensorflow::functor::Zero<float>, R
eductionF=tensorflow::functor::Min]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=float, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMaxOpGpu, AtomicReductionF=tensorflow::AtomicMaxOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<float>, EmptySegmentValueF=tensorflow::functor::Zero<float>, Re
ductionF=tensorflow::functor::Max]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(53): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (float, const float)
          detected during:
            instantiation of "void tensorflow::NonAtomicMaxOpGpu::operator()(T *, const T &) [with T=float]"
(125): here
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=float, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMaxOpGpu, AtomicReductionF=tensorflow::AtomicMaxOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=float, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<float>, EmptySegmentValueF=tensorflow::functor::Zero<float>, Re
ductionF=tensorflow::functor::Max]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=double, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicSumOpGpu, AtomicReductionF=tensorflow::AtomicSumOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::Zero<double>, EmptySegmentValueF=tensorflow::functor::Zero<double>, R
eductionF=tensorflow::functor::Sum]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(151): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentMeanNormalizeKernel(SegmentId, Index, const Index *, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=double]"
(166): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentMeanNormalizeKernel(const tensorflow::GPUDevice &, SegmentId, Index, const Index *, T *) [with SegmentId=tsl::int
32, Index=tsl::int32, T=double]"
(770): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::Zero<double>, EmptySegmentValueF=tensorflow::functor::Zero<double>, R
eductionF=tensorflow::functor::Sum]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=double, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicProdOpGpu, AtomicReductionF=tensorflow::AtomicProdOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::One<double>, EmptySegmentValueF=tensorflow::functor::One<double>, Red
uctionF=tensorflow::functor::Prod]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=double, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMinOpGpu, AtomicReductionF=tensorflow::AtomicMinOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::Highest<double>, EmptySegmentValueF=tensorflow::functor::Zero<double>
, ReductionF=tensorflow::functor::Min]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(54): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (double, const double)
          detected during:
            instantiation of "void tensorflow::NonAtomicMinOpGpu::operator()(T *, const T &) [with T=double]"
(125): here
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=double, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMinOpGpu, AtomicReductionF=tensorflow::AtomicMinOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::Highest<double>, EmptySegmentValueF=tensorflow::functor::Zero<double>
, ReductionF=tensorflow::functor::Min]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(109): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (tsl::int32, int)
          detected during:
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=double, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMaxOpGpu, AtomicReductionF=tensorflow::AtomicMaxOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<double>, EmptySegmentValueF=tensorflow::functor::Zero<double>,
 ReductionF=tensorflow::functor::Max]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(53): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (double, const double)
          detected during:
            instantiation of "void tensorflow::NonAtomicMaxOpGpu::operator()(T *, const T &) [with T=double]"
(125): here
            instantiation of "void tensorflow::SortedSegmentReductionCustomKernel<T,Index,OuterDimTileSize,ReductionF,AtomicReductionF>(Index, Index, Index, const Index *, const T
*, T *, Index, T) [with T=double, Index=tsl::int32, OuterDimTileSize=8, ReductionF=tensorflow::NonAtomicMaxOpGpu, AtomicReductionF=tensorflow::AtomicMaxOpGpu]"
(750): here
            instantiation of "void tensorflow::functor::SegmentReductionFunctor<T, Index, InitialValueF, EmptySegmentValueF, ReductionF>::operator()(tensorflow::OpKernelContext *,
const tensorflow::functor::GPUDevice &, Index, const tensorflow::TensorShape &, __nv_bool, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstFlat, Index, const T *, tensorflow:
:TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=double, Index=tsl::int32, InitialValueF=tensorflow::functor::Lowest<double>, EmptySegmentValueF=tensorflow::functor::Zero<double>,
 ReductionF=tensorflow::functor::Max]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(63): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (ptrdiff_t, ptrdiff_t)
          detected during:
            instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=ptrdiff_t]"
(233): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int
, Tsegmentids=ptrdiff_t]"
(570): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<float, 8>,
Tvec=tensorflow::AlignedVector<Eigen::half, 8>, Tindex=int, Tsegmentids=ptrdiff_t, ReduceOp=tensorflow::functor::Sum, Tinit=Eigen::half]"
(617): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=float, vec_size=8, T=Eigen::half, Tindex=int, Tsegmentids=ptrdiff_
t, ReduceOp=tensorflow::functor::Sum]"
.\tensorflow/core/util/gpu_kernel_helper.h(329): here
            instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=8LL, Functor=tensorf
low::SegmentReduceGPUVectorized<float>::Impl, Args=<tensorflow::OpKernelContext *&, int &, int &, ptrdiff_t &, tensorflow::functor::Sum &, Eigen::half &, Eigen::half &, __nv_bool &
, __nv_bool &, const Eigen::half *&, const int64_t *&, const tsl::int32 *&, const Eigen::half *&, Eigen::half *&>]"
.\tensorflow/core/util/gpu_kernel_helper.h(364): here
            instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=Eigen::half, Functor=tensorflow::SegmentReduceGPUVectoriz
ed<float>::Impl, Args=<tensorflow::OpKernelContext *&, tsl::int32 &, tsl::int32 &, int64_t &, tensorflow::functor::Sum &, Eigen::half &, Eigen::half &, __nv_bool &, __nv_bool &, co
nst Eigen::half *&, const int64_t *&, const tsl::int32 *&, const Eigen::half *&, Eigen::half *&>]"
(647): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=float, T=Eigen::half, Tindex=tsl::int32, Tsegmentids=int64_t, ReduceOp=ten
sorflow::functor::Sum]"
(904): here
            instantiation of "tsl::Status tensorflow::functor::SparseSegmentReductionFunctor<T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, __nv_bool, __nv_bool, T
, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::ConstTensor, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<SegmentId, 1, Eigen::DenseIndex>::ConstVec
, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=Eigen::half, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(95): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (<error-type>, ptrdiff_t)
          detected during:
            instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=ptrdiff_t]"
(233): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int
, Tsegmentids=ptrdiff_t]"
(570): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<float, 8>,
Tvec=tensorflow::AlignedVector<Eigen::half, 8>, Tindex=int, Tsegmentids=ptrdiff_t, ReduceOp=tensorflow::functor::Sum, Tinit=Eigen::half]"
(617): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=float, vec_size=8, T=Eigen::half, Tindex=int, Tsegmentids=ptrdiff_
t, ReduceOp=tensorflow::functor::Sum]"
.\tensorflow/core/util/gpu_kernel_helper.h(329): here
            instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=8LL, Functor=tensorf
low::SegmentReduceGPUVectorized<float>::Impl, Args=<tensorflow::OpKernelContext *&, int &, int &, ptrdiff_t &, tensorflow::functor::Sum &, Eigen::half &, Eigen::half &, __nv_bool &
, __nv_bool &, const Eigen::half *&, const int64_t *&, const tsl::int32 *&, const Eigen::half *&, Eigen::half *&>]"
.\tensorflow/core/util/gpu_kernel_helper.h(364): here
            instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=Eigen::half, Functor=tensorflow::SegmentReduceGPUVectoriz
ed<float>::Impl, Args=<tensorflow::OpKernelContext *&, tsl::int32 &, tsl::int32 &, int64_t &, tensorflow::functor::Sum &, Eigen::half &, Eigen::half &, __nv_bool &, __nv_bool &, co
nst Eigen::half *&, const int64_t *&, const tsl::int32 *&, const Eigen::half *&, Eigen::half *&>]"
(647): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=float, T=Eigen::half, Tindex=tsl::int32, Tsegmentids=int64_t, ReduceOp=ten
sorflow::functor::Sum]"
(904): here
            instantiation of "tsl::Status tensorflow::functor::SparseSegmentReductionFunctor<T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, __nv_bool, __nv_bool, T
, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::ConstTensor, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<SegmentId, 1, Eigen::DenseIndex>::ConstVec
, tensorflow::TTypes<T, 2, Eigen::DenseIndex>::Tensor) [with T=Eigen::half, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(95): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=tsl::int32, Index=ts
l::int32, T=Eigen::half]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=Eigen::half]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=Eigen::half, Index=tsl::int32, SegmentId=tsl::int32]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=int64_t, Index=tsl::
int32, T=Eigen::half]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=int64_t, Index=tsl::int32, T=Eigen::half]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=Eigen::half, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (int, int)
          detected during:
            instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=ptrdiff_t, Tsegmentids=int]"
(233): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=ptr
diff_t, Tsegmentids=int]"
(570): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<Eigen::half
, 8>, Tvec=tensorflow::AlignedVector<Eigen::half, 8>, Tindex=ptrdiff_t, Tsegmentids=int, ReduceOp=cub::Sum, Tinit=Eigen::half]"
(617): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=Eigen::half, vec_size=8, T=Eigen::half, Tindex=ptrdiff_t, Tsegment
ids=int, ReduceOp=cub::Sum]"
.\tensorflow/core/util/gpu_kernel_helper.h(329): here
            instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=8LL, Functor=tensorf
low::SegmentReduceGPUVectorized<Eigen::half>::Impl, Args=<tensorflow::OpKernelContext *&, ptrdiff_t &, ptrdiff_t &, int &, cub::Sum &, Eigen::half &, Eigen::half &, __nv_bool &, __
nv_bool &, const Eigen::half *&, const tsl::int32 *&, const int64_t *&, const Eigen::half *&, Eigen::half *&>]"
.\tensorflow/core/util/gpu_kernel_helper.h(364): here
            instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=Eigen::half, Functor=tensorflow::SegmentReduceGPUVectoriz
ed<Eigen::half>::Impl, Args=<tensorflow::OpKernelContext *&, int64_t &, int64_t &, tsl::int32 &, cub::Sum &, Eigen::half &, Eigen::half &, __nv_bool &, __nv_bool &, const Eigen::ha
lf *&, const tsl::int32 *&, const int64_t *&, const Eigen::half *&, Eigen::half *&>]"
(647): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=Eigen::half, T=Eigen::half, Tindex=int64_t, Tsegmentids=tsl::int32, Reduce
Op=cub::Sum]"
(976): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=Eigen::half, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no instance of overloaded function "tensorflow::min" matches the argument list
            argument types are: (<error-type>, int)
          detected during:
            instantiation of "void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=ptrdiff_t, Tsegmentids=int]"
(233): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=ptr
diff_t, Tsegmentids=int]"
(570): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmen
tids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<Eigen::half
, 8>, Tvec=tensorflow::AlignedVector<Eigen::half, 8>, Tindex=ptrdiff_t, Tsegmentids=int, ReduceOp=cub::Sum, Tinit=Eigen::half]"
(617): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, Re
duceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=Eigen::half, vec_size=8, T=Eigen::half, Tindex=ptrdiff_t, Tsegment
ids=int, ReduceOp=cub::Sum]"
.\tensorflow/core/util/gpu_kernel_helper.h(329): here
            instantiation of "tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=8LL, Functor=tensorf
low::SegmentReduceGPUVectorized<Eigen::half>::Impl, Args=<tensorflow::OpKernelContext *&, ptrdiff_t &, ptrdiff_t &, int &, cub::Sum &, Eigen::half &, Eigen::half &, __nv_bool &, __
nv_bool &, const Eigen::half *&, const tsl::int32 *&, const int64_t *&, const Eigen::half *&, Eigen::half *&>]"
.\tensorflow/core/util/gpu_kernel_helper.h(364): here
            instantiation of "tsl::Status tensorflow::DispatchToVectorized<T,Functor,Args...>(int64_t, Args &&...) [with T=Eigen::half, Functor=tensorflow::SegmentReduceGPUVectoriz
ed<Eigen::half>::Impl, Args=<tensorflow::OpKernelContext *&, int64_t &, int64_t &, tsl::int32 &, cub::Sum &, Eigen::half &, Eigen::half &, __nv_bool &, __nv_bool &, const Eigen::ha
lf *&, const tsl::int32 *&, const int64_t *&, const Eigen::half *&, Eigen::half *&>]"
(647): here
            instantiation of "tsl::Status tensorflow::SegmentReduceGPU<Treduce,T,Tindex,Tsegmentids,ReduceOp>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp,
T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=Eigen::half, T=Eigen::half, Tindex=int64_t, Tsegmentids=tsl::int32, Reduce
Op=cub::Sum]"
(976): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=Eigen::half, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=tsl::int32, Index=ts
l::int32, T=tensorflow::bfloat16]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=tensorflow::bfloat16]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=tensorflow::bfloat16, Index=tsl::int32, SegmentId=tsl::int32]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=int64_t, Index=tsl::
int32, T=tensorflow::bfloat16]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=int64_t, Index=tsl::int32, T=tensorflow::bfloat16]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=tensorflow::bfloat16, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=tsl::int32, Index=ts
l::int32, T=float]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=float]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=float, Index=tsl::int32, SegmentId=tsl::int32]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=int64_t, Index=tsl::
int32, T=float]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=int64_t, Index=tsl::int32, T=float]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=float, Index=tsl::int32, SegmentId=int64_t]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
          detected during:
            instantiation of "void tensorflow::SegmentWeightsKernel(SegmentId, tensorflow::SparseSegmentReductionOperation, const Index *, T *) [with SegmentId=tsl::int32, Index=ts
l::int32, T=double]"
(674): here
            instantiation of "tsl::Status tensorflow::LaunchSegmentWeightsKernel(const tensorflow::GPUDevice &, SegmentId, tensorflow::SparseSegmentReductionOperation, const Index
*, T *) [with SegmentId=tsl::int32, Index=tsl::int32, T=double]"
(941): here
            instantiation of "void tensorflow::functor::SparseSegmentGradFunctor<tensorflow::functor::GPUDevice, T, Index, SegmentId>::operator()(tensorflow::OpKernelContext *, ten
sorflow::SparseSegmentReductionOperation, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::ConstMatrix, tensorflow::TTypes<Index, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<Se
gmentId, 1, Eigen::DenseIndex>::ConstVec, tensorflow::TTypes<T, 1, Eigen::DenseIndex>::Matrix) [with T=double, Index=tsl::int32, SegmentId=tsl::int32]"
E:\20220616_1800pm\_bazel_tensorflow\jsjos6dw\execroot\org_tensorflow\tensorflow\core\kernels\segment_reduction_ops_gpu_0.cu.cc(101): here

.\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(657): error: no instance of overloaded function "tensorflow::max" matches the argument list
            argument types are: (tsl::int32, tsl::int32)
```
</details>