Skip to content

Add test cases using varying import statements #50

@khatchad

Description

@khatchad

import tensorflow as tf
def add(a, b):
return a + b
c = add(tf.ones([1, 2]), tf.ones([2, 2])) # [[2., 2.], [2., 2.]]

Please add a test case that imports tf.ones in a different way, i.e., from tensorflow import ones (or something like that) and then change the code so that it reads:

c = add(ones([1, 2]), ones([2, 2]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions