constructor(attrs = {}) {
    super(attrs)
    this.layerClass = 'SpatialDropout1D'

    const { p = 0.5 } = attrs

    this.description = `${p}`

    this.p = Math.min(Math.max(0, p), 1)
  }
Creates an SpatialDropout1D layer

@param {Object} [attrs] - layer config attributes
@param {number} [attrs.p] - fraction of the input units to drop (between 0 and 1)