Comments (5)
For TF implementation of the resizeBilinear gradient we will implement:
https://github.com/tensorflow/tensorflow/blob/9832df/tensorflow/core/kernels/resize_bilinear_op.cc#L275
We have a tf.tile()
op, does that suffice? What are you looking for with repeat?
from tfjs.
Awesome to hear about resizeBilinear gradient! As for repeat, I was looking for an op that would perform an element-wise repeat (tensorflow/tensorflow#8246), eg: repeating
[[1, 2],
[3, 4]]
with [2, 2]
would yield:
[[1, 1, 2, 2],
[1, 1, 2, 2],
[3, 3, 4, 4],
[3, 3, 4, 4]]
I was going to use that as an upsampling op to match the tf.maxPool()
s on the other side of my autoencoder.
Slightly related: I attempted implementing the solution (tile & reshape) posted in the above TensorFlow issue, but hit an exception when attempting to call tf.tile()
on rank 5 tensors.
from tfjs.
Are you trying to repeat on a 4D tensor? Just curious, what is the use-case?
We actually haven't done any work with rank-5 Tensors, but we can add support if there's a driving use case here.
from tfjs.
The only reason I would have needed rank 5 tensors would be to implement the makeshift "repeat" solution posted here: tensorflow/tensorflow#8246 , which I only needed in absence of tf.resizeBilinear gradients. I was trying to achieve the same thing: "upsample" a [batchSize, height, width, numChannels] tensor to [batchSize, height * 2, width * 2, numChannels]. Sorry for the confusion.
from tfjs.
Hi @tehZevo , gradient for resizeBilinear was added in tensorflow/tfjs-core#996 . Make sure to use the latest tfjs. I'm going to close this issue, as per its title, we've fixed it, but feel free to reopen if you run into any issues with resizeBilinear or its gradient.
from tfjs.
Related Issues (20)
- tf.fft rfft return tensor filled with 0 when given tensor with more than 150k element. HOT 8
- Hand-pose-detection react-native TypeError: Cannot read property 'prototype' of undefined HOT 4
- Bundle Size Issues HOT 6
- BlazePoseTfjsEstimationConfig - flipHorizontal do not work HOT 4
- @tensorflow/tfjs-node error on windows HOT 13
- Order of output heads from converted model keeps changing HOT 4
- Is there anything we can do about the JavaScript overhead that comes from predictions made in a loop?
- I'm running code of tensorflow/tfjs-node-gpu or tensorflow/tfjs-node after installation. I got an error. HOT 4
- Problem when installing tensorflowjs 3.18.0 HOT 5
- `tfjs-models/face-landmarks-detection`: `keypoint` `291` missing in `MEDIAPIPE_FACE_MESH_KEYPOINTS_BY_CONTOUR.lips` HOT 2
- Tensorflow model is working in python but converted tfjs model is not working HOT 7
- tidy function erase tensor before it can be used HOT 5
- `tf.einsum` appears incorrect for some cases HOT 2
- Installing tensorflow/tfjs-node fails on macOS Sonoma (14.3) on Apple Silicon ("Command failed: node-pre-gyp install --fallback-to-build HOT 11
- Tensorflow.js Converter: Usage of `save_format` when converting to graph model causes error on Keras 3 HOT 1
- [Codelab]: Making Predictions from 2D Data HOT 4
- Docs/readme left unfinished for model "face-landmarks-detection" HOT 4
- Error dumping weights duplicate weight name kernel HOT 9
- Loading movenet gives Uncaught (in promise) TypeError: Failed to fetch HOT 15
- Next.js Cannot get final name for export 'transposeImplCPU' error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfjs.