This commit is contained in:
Roland Grinis 2021-07-09 09:36:39 +01:00
parent 00a04a1931
commit 68d0e9958f
2 changed files with 4 additions and 4 deletions

View File

@ -47,22 +47,22 @@ constructor(scope: NoaScope, internal val tensorHandle: TensorHandle) :
}
public fun copyToDouble(): NoaDoubleTensor = NoaDoubleTensor(
public fun asDouble(): NoaDoubleTensor = NoaDoubleTensor(
scope = scope,
tensorHandle = JNoa.copyToDouble(this.tensorHandle)
)
public fun copyToFloat(): NoaFloatTensor = NoaFloatTensor(
public fun asFloat(): NoaFloatTensor = NoaFloatTensor(
scope = scope,
tensorHandle = JNoa.copyToFloat(this.tensorHandle)
)
public fun copyToLong(): NoaLongTensor = NoaLongTensor(
public fun asLong(): NoaLongTensor = NoaLongTensor(
scope = scope,
tensorHandle = JNoa.copyToLong(this.tensorHandle)
)
public fun copyToInt(): NoaIntTensor = NoaIntTensor(
public fun asInt(): NoaIntTensor = NoaIntTensor(
scope = scope,
tensorHandle = JNoa.copyToInt(this.tensorHandle)
)