Git Product home page Git Product logo

tensorflow-coder's Issues

Eliminate equivalent solutions / convert solutions to canonical form

The proposal is to have the solver recognize that, say these two
calls are equivalent, so once you've tried the first you don't need to
try the second:

 tf.multiply(tf.constant(2), tf.range(5)
 tf.multiply(tf.constant(5), tf.range(2)

i.e., multiply(a,b) == multiply(b,a) and ditto for add.
Maybe a and be have to be of the same dtype however.

This is the problem I gave it (and of note is that adding constant 2 is necessary):

inputs = {
    'data': [[0, 1, 1, 0, 0],
             [0, 0, 0, 0, 0],
             [1, 1, 1, 1, 1]]
}

output = [[0, 3, 5, 6, 8],
          [0, 2, 4, 6, 8],
          [1, 3, 5, 7, 9]]

constants = [2]

And these are the solutions - of course only the first is interesting since tf-coder
is just reordering args.

Found solution: tf.add(data, tf.multiply(tf.constant(2), tf.range(5)))
Found solution: tf.add(data, tf.multiply(tf.range(5), tf.constant(2)))
Found solution: tf.add(tf.multiply(tf.constant(2), tf.range(5)), data)
Found solution: tf.add(tf.multiply(tf.range(5), tf.constant(2)), data)

Model training

Hello there.
Thank you very much for this good tool.
I have a question for you. If I want to train on this model, which file should I start with?
Forgive me for this very basic question.

How to set inputs and outputs if examples have different shapes

Hi.
Thanks a lot for this great tool.
I'm trying to use it for a simple op, where the input is a Tensor of shape (num_boxes, 4) - where num_boxes can be any value, and the output would have a fixed shape (10, 4). Basically, it would either pad if num_boxes is less than 10, or slice the first 10 otherwise.

Am not clear how I could set various examples for inputs, since they would have different shapes.

Could you please give me a hint ?

Thanks a lot ! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.