Comment by skytree on How to continue a Docker container which has exited
what is the so-called "attach" to container? The "attach" ?
View ArticleComment by skytree on How do I increase the scrollback buffer in a running...
Great to know steps of how to scroll !
View ArticleComment by skytree on Visual Studio: MSB3073 error exited with code 1
How to add CMAKE_INSTALL_PREFIX in CMakeLists.txt?
View ArticleComment by skytree on What exactly does target_vocab_size mean in the method...
What is the algorithm or high-level idea behind tfds.features.text.SubwordTextEncoder.build_from_corpus?
View ArticleComment by skytree on In header files, what is the difference between a...
@vrdhn not fun at all...
View ArticleComment by skytree on How to change parts of parameters' device type of a...
Those two parameters are trainable variables, they have .grad. What should I do in this case?
View ArticleComment by skytree on How to change parts of parameters' device type of a...
@Prajot Kuvalekar I want to place different parameters on different devices.
View ArticleComment by skytree on What's the purpose of torch.autograd.Variable?
The Variable API has been deprecated. pytorch.org/docs/stable/autograd.html
View ArticleComment by skytree on Find the outer edges of a graph
Can we use BFS etc to detect outer edges?
View ArticleComment by skytree on Simplest async/await example possible in Python
What if there is a dependence between async function and the following computation?
View ArticleComment by skytree on What is the real significance(use) of polymorphism
Can I just define Circle *a = new Circle(1.0f); then call a->GetArea()? Why cannot we just do this? In what cases we must use the base pointer, i.e. Shape *ptr? Thank you.
View ArticleComment by skytree on In Tensorflow, get the names of all the Tensors in a graph
module 'tensorflow' has no attribute 'all_variables'
View ArticleComment by skytree on How to verify CuDNN installation?
sudo cp -Pdocs.nvidia.com/deeplearning/cudnn/install-guide/…
View ArticleWhy is passing a class instance into its own class constructor right?...
I am curious about the following code which can execute correctly.#include <iostream>using namespace std;class A{public: A(int a=1, int b=2){ this->a = a; this->b = b; } void print_a(){...
View ArticleWhere is the boundary of start and end of CPU launch and GPU launch of Nvidia...
What is the definition of start and end of kernel launch in the CPU and GPU (yellow block)? Where is the boundary between them?Please notice that the start, end, and duration of those yellow blocks in...
View ArticleHow does Tensorflow define preprocessor macros?
tensorflow/stream_executor/platform/platform.h defines some macros. How does TF set macros like ANDROID, __ANDROID__, PLATFORM_GOOGLE, RASPBERRY_PI?I think bazel BUILD file may preset some macros like...
View ArticleHow does TensorFlow generate gen_array_ops.py via array_ops.cc?
TensorFlow generates code automatically. I am curious about how TF generates gen_array_ops.py by array_ops.cc ?The generated python file is at...
View ArticleHow to set a default parameter of a class member function as another member...
What I want to do is: Pass foo function pointer to function bar as a default parameter. But it is not allowed. How to implement it?class Klass (): def __init__(self): print('init') def foo(self):...
View ArticleHow to initialize the variables of the existing Keras Models?
I would like to retrain Keras Model, Inception_v3, from scratch.The model is defined here:https://github.com/keras-team/keras-applications/blob/master/keras_applications/inception_v3.pyI read some...
View ArticleC++ std::string syntax "new (&y) std::string(x);"
How to understand the following std::string init syntax?#include <iostream>#include <string>int main (){ std::string y; std::string x = "x str"; new (&y) std::string(x); std::cout...
View ArticleHow to get the bazel dependencies of Tensorflow by bazel query?
I just start reading code of Tensorflow. I have some experience with other frameworks.In order to see the dependencies of the whole Tensorflow project, I would like to use bazel query to print the...
View ArticleHow to understand the concurrency of requests from client-side by gRPC in the...
BackgroundAccording to Serving a TensorFlow Model, The program in mnist client is aboutA client that talks to tensorflow_model_server loaded with mnist model.The client downloads test images of mnist...
View ArticleIllegalArgumentException of concurrent ScheduledThreadPoolExecutor for...
I am running a test file for HotSpot, JDK8 on my Mac. I use IntelliJ IDEA to run this java program.IntelliJ IDEA 2017.1.2Build #IC-171.4249.39, built on April 25, 2017JRE: 1.8.0_112-release-736-b16...
View ArticleAnswer by skytree for Does tensorflow have the function similar to pytorch's...
I am inspired by the above answer.masked_fill ==>def mask_fill_inf(matrix, mask): num = 3.4 * math.pow(10, 38) return (matrix + (-(((mask * num) + num) - num)))
View ArticleHow to understand RELAXED ORDERING in std::memory_order (C++)
I have read a lot of posts and watched several Youtube videos C++ atomic and memory model (ConCpp 17, 14).When I read the book Concurrency In Action, section 5.3.3, RELAXED ORDERING, I still cannot...
View ArticleAnswer by skytree for Turn off auto formatting for json files in Visual...
Disable the checkbox to disable the code formattor.
View ArticleWhat is Training step time in machine learning?
In the paper:TensorFlow: A system for large-scale machine learning (Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen...)What does the term "step time" or "training step time" mean? Why not just...
View ArticleQEMU debugging:: Warning:TCG doesn't support requested feature: CPUID.01H:ECX
I want to use QEMU to debug my compiled kernel linux-4.13.4 on Ubuntu 16.04.3 LTSI follow the following steps:1 install qemusudo apt-get install qemu2 run qemuqemu-system-x86_64 -s -S -kernel...
View ArticleWhat is the functionality of master in torch.distributed init_process_group?
I studied the tutorial post about torch.distributed (examples are in the gitHub repository). I see the initialzation isdef init_process(rank, size, fn, backend='gloo'):""" Initialize the distributed...
View ArticleDistributed Builds by Bazel
How to build a large project by Bazel on two servers to speed up the building process?When you have a large codebase, chains of dependencies can become very deep. Even simple binaries can often depend...
View ArticleHow to build a TensorFlow cluster and let each node can make a connection to...
How to build a TensorFlow cluster and let each node make a connection to any rest of the nodes (1 to N-1)? I check the code and its implementation is server-client with gRPC. Does that mean I should...
View ArticleHow to profile a C++ program and replay its variables? [closed]
birdseye is a Python debugger which records the values of expressions in a function call and lets you easily view them after the function exits.What is a similar tool to replay for C++ programs?
View ArticleAnswer by skytree for How to fix linux-tools broken due to interrupt during...
I find the solution from https://askubuntu.com/questions/1062171/dpkg-deb-error-paste-subprocess-was-killed-by-signal-broken-pipe$ sudo dpkg -i --force-overwrite...
View ArticleHow to fix linux-tools broken due to interrupt during Ubuntu upgrading from...
I am upgrading Ubuntu upgrading from 16.04 to 18.04 but I mistakenly reboot the machine in the middle. I try to upgrade the system again by following the commands in option 2 in this post.1.1. Update...
View ArticleCan we use torch.multiprocessing.spawn with wandb sweep hyper-parameter tuning?
Can we use torch.multiprocessing.spawn with wandb.sweep (https://docs.wandb.ai/guides/sweeps).torch.multiprocessing.spawn(func, nprocs=world_size, join=True)I tried but got errors and cannot find...
View ArticleHow to make namenode container in the Hadoop to access to network in the Docker?
I am new to Docker network configure and Hadoop, based on this tutorial Set Up Containerize and Test a Single Hadoop Cluster using Docker and Docker compose, how to configure to make namenode access...
View ArticleAnswer by skytree for Unable to import Pandas Profiling
Try this:!pip install pandas-profiling[notebook]
View ArticleHow to monitor JVM and know whether it is a minor GC or major GC for Parallel...
Oracle provides some tools for monitoring.But I cannot use visual tools since I am using a terminal. Also, jstat utility cannot tell whether it is a minor GC or major GC when I use Parallel GC.Is there...
View ArticleHow does java virtual machine connect user level function to its internal...
How does JVM translate API to its implementation inside JVM?Is it similar to "Linux Kernel syscall" implementation? If so, where are these interfaces? Hope to see the source code.Figure from...
View ArticleInvocationTargetException/NoClassDefFoundError/ClassNotFoundException when...
I build OpenJDK 9 by myself and run Dacapo Benchmarks on my Linux Server(64-bit, 64 cores, 126GB Memory)(Ubuntu 17.10).I have InvocationTargetException/NoClassDefFoundError/ClassNotFoundException when...
View ArticleWhich JavaThread in JVM is mutator thread?
The concept of mutator thread is related to Garbage Collection.The basic threading model in Hotspot is a 1:1 mapping between Java threads (an instance of java.lang.Thread) and native operating system...
View ArticleHow to generate valid debug version of JDK9 without "0x00007fffe0dde513 in ??...
This is my previous post:JDK9 Hotspot debug using gdb, causing SIGSEGV Segmentation fault in eclipse/Ubuntu terminalRight now I have a question about Thread 0x7ffff7fc8700 (LWP 74291) "java"...
View Article