最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Tensorflow: Convert Tensor to Tensor3D in TypeScript - Stack Overflow

programmeradmin0浏览0评论

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?)

发布评论

评论列表(0)

  1. 暂无评论