@@ -1293,23 +1293,23 @@ package object onnxruntime {
1293
1293
(callOp(name, " BitShift" , allInputs, map))
1294
1294
}
1295
1295
}
1296
- // Not supported, not in ONNXJS
1297
- /*
1298
- trait ClipV12 extends Operator {
1296
+
1297
+ // Diverging from the spec, min and max are optional there, but otherwise it's a no-op
1298
+ trait ClipV12 extends onnx. Operator {
1299
1299
def ClipV12 [
1300
- @sp T <: UByte | UShort | UInt | ULong | Byte | Short | Int | Long | Float16 | Float | Double: Numeric
1301
- , Ax <: Axes, Tt <: TensorTypeDenotation, Dd <: DimensionDenotation ](
1300
+ @ sp T <: UByte | UShort | UInt | ULong | Byte | Short | Int | Long | onnx. Float16 | Float | Double : Numeric
1301
+ , Tt <: TensorTypeDenotation , Td <: TensorShapeDenotation , S <: Shape ](
1302
1302
name : String ,
1303
- input: Tensor[T, Ax ],
1304
- min: Option[ Tensor[T, Scalar [Tt, Dd]]] = None ,
1305
- max: Option[ Tensor[T, Scalar [Tt, Dd]]] = None
1306
- )(using tt: ValueOf[Tt], td: TensorShapeDenotationOf[Td], s: ShapeOf[S]): Tensor[T, Ax ] = {
1303
+ input : Tensor [T , Tuple3 [ Tt , Td , S ] ],
1304
+ min : Tensor [T , Tuple3 [Tt , Td , SNil ]] ,
1305
+ max : Tensor [T , Tuple3 [Tt , Td , SNil ]]
1306
+ )(using tt : ValueOf [Tt ], td : TensorShapeDenotationOf [Td ], s : ShapeOf [S ]): Tensor [T , Tuple3 [ Tt , Td , S ] ] = {
1307
1307
val map : Map [String , Any ] = Map ()
1308
1308
val allInputs = Tuple3 (input, min, max)
1309
1309
(callOp(name, " Clip" , allInputs, map))
1310
1310
}
1311
1311
}
1312
-
1312
+ /*
1313
1313
trait ClipV11 extends Operator {
1314
1314
def ClipV11[
1315
1315
@sp T <: UByte | UShort | UInt | ULong | Byte | Short | Int | Long | Float16 | Float | Double: Numeric
0 commit comments