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
2424 *
2525 * Throws [IllegalStateException] on failure.
2626 */
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)) {
2929 " Shape ${this .shape()} is not compatible with the required shape $shape "
3030 }
3131}
@@ -35,8 +35,8 @@ public fun <T: Shaped> T.requireShape(shape: Shape): T = apply{
3535 *
3636 * Throws [IllegalStateException] on failure.
3737 */
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))) {
4040 " Shape ${this .shape()} is not compatible with the required shape $shape "
4141 }
4242}
You can’t perform that action at this time.
0 commit comments