I am new in Tensorflow and use the NPM library @tensorflow/tfjs-core.
I want to convert a Tensor-Object to a 3D representation. I had a look into their API documenation, and found that this was possible using versions until v2.0.1, but not anymore after v2.1.0.
import * as tf from '@tensorflow/tfjs-core';
...
const tensor3D = tf.tidy(() => tf.Tensor.as3D(height, width, numChannels).toInt())
The code is working. But after a needed update to version 4.22.0, those converting methods are gone. I could not really find anything helpful in their Changelogs or here, so i was wondering if somebody has encountered similar problems and resolved them. How are methods like as3D
or as4D
implemented now (or where to find now?)
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745116561a4612160.html
评论列表(0条)