Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Paweł Biernat
    @pwl
    Hi, I'm just starting with the tensorflow and I have a question. Say I have a vector x=[1,2,3] with a shape [3], how do I produce a matrix with columns coming from x, something like [x,x,x,x], with a shape [3,4]? Mathematically it could be described as the outer product of [1,2,3] and [1,1,1,1].
    Paweł Biernat
    @pwl
    If that helps, I'm trying to run Edward with w = Normal(mu=tf.zeros([D, K]), sigma=sigma0 * tf.ones([D, K])), and I would like to change tf.ones([D,K]) into the outer product matrix that I described.
    Paweł Biernat
    @pwl

    answering my own question

    x1,y1=tf.meshgrid(tf.constant([1,2,3,4]),tf.ones(2),indexing='ij')

    seems to do the job.

    James
    @JamesDaniel
    hey, anybody know why I can't install tensorflow in ubuntu?
    (virt4) user@ubuntu:~/virt_env/virt4$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
    Collecting tensorflow==0.11.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
    Downloading https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl (39.8MB)
    99% |████████████████████████████████| 39.8MB 40.4MB/s eta 0:00:01Exception:
    Traceback (most recent call last):
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/download.py", line 882, in _download_http_url
    _download_url(resp, link, content_file, hashes)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/download.py", line 605, in _download_url
    consume(downloaded_chunks)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/utils/init.py", line 852, in consume
    deque(iterator, maxlen=0)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/download.py", line 571, in written_chunks
    for chunk in chunks:
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/utils/ui.py", line 139, in iter
    for x in it:
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/download.py", line 560, in resp_read
    decode_content=False):
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream
    data = self.read(amt=amt, decode_content=decode_content)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 314, in read
    data = self._fp.read(amt)
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 63, in read
    self._close()
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 50, in _close
    self.callback(self.buf.getvalue())
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/controller.py", line 275, in cache_response
    self.serializer.dumps(request, response, body=body),
    File "/home/user/virt_env/virt4/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py", line 87, in dumps
    ).encode("utf8"),
    MemoryError
    ahh, sorry. I thought that would be collapsed
    James
    @JamesDaniel
    so I got as far as installing tensor globally even though I had the virtualenv active :/
    problem was I was using the latest ubuntu 16 but should have been using ubuntu 14
    64bit system of course
    but I'm having another problem :/
    numpy won't install and its asking for setuptools which is already installed
    Cleaning up...
    Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5hYSAi-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/numpy
    Traceback (most recent call last):
      File "/usr/bin/pip", line 9, in <module>
        load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
      File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 235, in main
        return command.main(cmd_args)
      File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
        text = '\n'.join(complete_log)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
    YMOS
    @YMOS
    Hi guys
    I am in need of few ideas that can be implemented in deep learning using Tensor. Any help will be appreciated
    atorefrank
    @atorefrank
    Does anyone know of examples on how to integrate tensorflow into java applications. From what I have read, it looks like a tightly couple application would require jep (due to the underlying C++ implementation). The alternative would be a separate service that communicates over http, which would be slower. Any ideas or source referrals?
    serteckian
    @serteckian
    Hi, one basic question for a newbye, please
    I am training a network and it works great, but after some time where it is stable ate the maximum performance, then it gets crazy.
    I want to store the best network parameters in a new variable, i.e.,
    if current_performance > best_performance:
    best_params = current_params
    how can I copy the parameters?
    serteckian
    @serteckian
    solved! :-)
    serteckian
    @serteckian

    oh! nope... I have created another network:
    best_inputs, best_out, best_scaled_out = create_network()
    best_network_params = tf.trainable_variables()

    Then I create this op:
    update_best_network_params = [best_network_params[i].assign(original_network_params[i])
    for i in range(len(original_network_params))]

    Later in my program I invoke:
    actor.update_best_network()

    And the problem is that it seems that it is assigning a reference rather than doing a deep copy

    serteckian
    @serteckian
    Learning a new library/language by imitation, I feel like a monkey writing a book by random keys! :-D
    serteckian
    @serteckian
    I am struggling for duplicating a network when some condition is met (e.g., performance > threshold) in order to get a snapshot. This way, even if the training gets worse, I can recover an intermediate snapshot of the network. Please, any idea how to achieve this?
    Ad34
    @ad34
    Hello , I'm using tensorflow as backend in keras and after upgrading to 0.12rc1 I get the following error : ValueError: The shape for while_1/Merge_2:0 is not an invariant for the loop. It enters the loop with shape (1, 1), but has shape (?, 1) after one iteration. Provide shape invariants using either the shape_invariants argument of tf.while_loop or set_shape() on the loop variables. I guess the issue is on keras itself, but I would like to revert to 0.10.0 , do u guys know if it can be done with pip . I m on macOS
    Ad34
    @ad34
    upgrading to the latest keras 1.1.2 from github fixed the issue :)
    skervim
    @skervim
    Hey guys!
    Is it possible to store the log-files of tensorboard in another file than /tmp ? It doesn't seem to work. My problem is that I want to train a model today, but visualize the results after reboot on another day. Any suggestions?
    skervim
    @skervim
    Okay, I solved it. Instead of ~/... one has to save the log-file as /home/$USER....
    Tiago Rodrigues
    @TiagoMRodrigues
    hey guys
    imagine I want to train data for semantic similarity. I have stored the features for each sentence individually but all my features are dependent of the pair of sentences selected (eg I may have number of nouns in sentence A is X and number of nouns in sentence B is Y but the feature I want to train simmilarity is X-Y) do I need to do precalc for each sentece pair or is another way to make the features appear on the fly.
    Surya Bhupatiraju
    @suryabhupa
    Hi guys, do people know how to extract the attention matrices that are computed in TensorFlow's seq2seq example code during an example decoding?
    MammadTavakoli
    @MammadTavakoli
    Hi
    chen wei
    @auroua
    Hi guys, how to implement weight normalization in tensorflow?
    jyp
    @pzz2011

    My question has no relation with this topic. I want to know the reason why does people use ::testing::initGoogleTest instead of testing::initGoogleTest when people use gtest to do unit test. => from this, I am confused by the difference of ::testing::initGoogleTest and testing::initGoogleTest? Sorry to take up u guys time here in such stupid question.

    Anyone can help me for this confusion?Thanks.

    Prakhar Mishra
    @prakhar21
    I am interested in learning Time Series data. Right now i have created a NN that, takes in input a set of days(window) and predicts the next days output. How can I take it further in predicting next 7 days for eg. ?
    AugustoCFerrari
    @augustot2
    anyone here ?
    need help loading my weights and variables
    Rizky Luthfianto
    @rilut
    Anyone has easy an explanation of Beam Search? I've googled it and opened all it links, but still doesn't understand it
    Nicholas Connor
    @nkconnor
    any examples floating around of multi-label classification with the contrib estimator APIs?
    Nicholas Connor
    @nkconnor
    actually I don't see many examples of multi-label period. that is surprising given all the image tagging hype lately
    Segev Malool
    @segevmalool
    Hello everyone, I have a question about feeding a scalar to a tf model, as in nExamples = tf.placeholder(tf.int32,shape=[])
    When I try to use nExamples to define a tf.Variable, I get an error:
    initial_value must have a shape specified: Tensor("random_uniform_1:0", shape=(?, 10), dtype=float32)
    It thinks the shape is '?', but I clearly defined the shape in the placeholder call above.
    What gives?
    Simon Ho
    @bawongfai
    Anyone can explain how tf.contrib.training.bucket_by_sequence_length works?
    Pommier
    @jeanpat
    Hi,
    If interested, there's a semantic segmentation problem waiting to be solved here : https://github.com/chromosome-seg/DeepFISH
    [_]
    @ItchyJunk
    What is a good way to find out if tensorflow is supported in certain hardware (mac AMD openCL)
    Darren Garvey
    @darrengarvey
    @ItchyJunk Checking out the sources and running ./configure is a pretty good way. In a general sense, mac AMD and OpenCL are all supported
    pip install tensorflow-gpu and running python -c "import tensorflow as tf; tf.InteractiveSession()" should also tell you if TF finds your GPU, if that's what you are interested in