cwise_op_clip.cc | 82 UnaryClipFunc(const T& value_min, const T& value_max) 83 : value_min(value_min), value_max(value_max) {} 85 return std::max(std::min(value, value_max), value_min); 87 T value_min; member in struct:tensorflow::functor::UnaryClipFunc 103 explicit BinaryRightClipFunc(const T& value_min) : value_min(value_min) {} 105 return std::max(std::min(value, value_max), value_min); 107 T value_min; member in struct:tensorflow::functor::BinaryRightClipFunc [all...] |