質問編集履歴

1

誤字

2019/03/30 09:05

投稿

hood
hood

スコア351

test CHANGED
File without changes
test CHANGED
@@ -38,11 +38,11 @@
38
38
 
39
39
  [ここらへんのメソッド](https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/Tensor.html#public-static-tensorintegercreatelong[]-shape,-intbuffer-data)を調べているのですがいまいち理解ができないので、質問させていただきました。
40
40
 
41
- 多分下にあるメソッドを改良していくのだと思いますが、[IntBuffer](https://developer.android.com/reference/java/nio/IntBuffer)の使い方などが難しすぎます・・・
41
+ 多分下のようなコードを改良していくのだと思いますが、[IntBuffer](https://developer.android.com/reference/java/nio/IntBuffer)の使い方などが難しすぎます・・・
42
42
 
43
43
  ```kotlin
44
44
 
45
- val input = Tensor<Integer> create (long[] shape, IntBuffer data)
45
+ val input = Tensor<Integer>.create (shape = {1,10,1102}, IntBuffer data)
46
46
 
47
47
  ```
48
48