When I read Mxnet source code, I was confused in following statements:
object NDArray {
private val logger = LoggerFactory.getLogger(classOf[NDArray])
private[mxnet] val DTYPE_NATIVE_TO_MX: Map[Class[_ >: Float with Int with Double], Int] = Map(
classOf[Float] -> 0,
classOf[Double] -> 1,
classOf[Int] -> 4
)
What does it mean for "Class[_ >: Float with Int with Double], Int]"? I understand the scala keyword "with" could be used during class declaration, for example
Class person with glass {
means the class 'person' has the trait of objdect 'glass'.
How to interpret the usage of 'with' in above code?