moonlight icon indicating copy to clipboard operation
moonlight copied to clipboard

Support TF 2.0

Open ringw opened this issue 6 years ago • 1 comments

TF 2.0 deletes the "contrib" package, and image functions have moved to the "addons" project: https://github.com/tensorflow/addons/issues/25

It seems like every function is getting a clean-room implementation there. This project is the main user of connected_components so no one else has re-implemented it yet in addons. We should avoid any C++ ops in this project, and contribute image ops to addons instead.

Some tf.contrib.learn functions might have moved to tf.estimator. Otherwise, we will need to find a replacement in addons.

ringw avatar Apr 24 '19 16:04 ringw

Wow, I would never suspect such trivial code to fail.

The code in question is just

echo "root:x:0:0:System administrator:/data/data/com.termux.nix/files/usr/root:/bin/sh" > /data/data/com.termux.nix/files/usr/etc/passwd
echo "nix-on-droid:x:$(/system/bin/stat -c '%u:%g' /data/data/com.termux.nix/files/usr):nix-on-droid:/bin/sh" >> /data/data/com.termux.nix/files/usr/etc/passwd

Could you please run /system/bin/stat -c '%u:%g' /data/data/com.termux.nix/files/usr and these two commands in a failsafe shell and post the results?

t184256 avatar Mar 14 '19 03:03 t184256

Same issue on HUAWEI Mate 20 Pro Android 9 Emui 9.0.0.198

gallexme avatar Mar 15 '19 19:03 gallexme

Don't know what u mean with failsafe shell, but I've tried with termux https://puu.sh/D0tAA/45c6764db1.jpg

gallexme avatar Mar 15 '19 19:03 gallexme

When the app was installed, it should've created not one, but two entries in your app drawer. 'Nix' for launching a shell inside the Nix environment, and 'Nix (failsafe shell)' for a vanilla Android environment from the user that owns the Nix environment files. You need to close all the sessions, invoke the latter. and run the commands there.

Running these command in Termux won't cut it because it doesn't have sufficient permissions.

t184256 avatar Mar 15 '19 20:03 t184256