File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/main/kotlin/org/tensorflow Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ import org.tensorflow.ndarray.Shaped
24
24
*
25
25
* Throws [IllegalStateException] on failure.
26
26
*/
27
- public fun <T : Shaped > T.requireShape (shape : Shape ): T = apply {
28
- check(this .shape().isCompatibleWith(shape)){
27
+ public fun <T : Shaped > T.requireShape (shape : Shape ): T = apply {
28
+ check(this .shape().isCompatibleWith(shape)) {
29
29
" Shape ${this .shape()} is not compatible with the required shape $shape "
30
30
}
31
31
}
@@ -35,8 +35,8 @@ public fun <T: Shaped> T.requireShape(shape: Shape): T = apply{
35
35
*
36
36
* Throws [IllegalStateException] on failure.
37
37
*/
38
- public fun <T : Shaped > T.requireShape (vararg shape : Long ): T = apply {
39
- check(this .shape().isCompatibleWith(Shape .of(* shape))){
38
+ public fun <T : Shaped > T.requireShape (vararg shape : Long ): T = apply {
39
+ check(this .shape().isCompatibleWith(Shape .of(* shape))) {
40
40
" Shape ${this .shape()} is not compatible with the required shape $shape "
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments