Skip to content

Fix Ivy Failing Test: jax - norms.batch_norm#28920

Closed
Ajay6601 wants to merge 11 commits intoivy-llc:mainfrom
Ajay6601:main
Closed

Fix Ivy Failing Test: jax - norms.batch_norm#28920
Ajay6601 wants to merge 11 commits intoivy-llc:mainfrom
Ajay6601:main

Conversation

@Ajay6601
Copy link
Contributor

@Ajay6601 Ajay6601 commented Jul 21, 2025

close #28919
close #28921

@Ajay6601
Copy link
Contributor Author

image all tests passed

@Ajay6601
Copy link
Contributor Author

Ajay6601 commented Jul 22, 2025

Reformat layers : conv1d_transpose
close #28922

Copy link
Contributor

@Sam-Armstrong Sam-Armstrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You seem to be doing multiple things all as part of the same PR, can you change this PR to only make the necessary changes to fix the test for ivy.batch_norm, and open separate PRs for resolving any other issues? Also see my other comments. Thanks!

{
a: ivy.Shape(1, 56, 6),
b: ivy.Shape(1, 112, 6)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you've changed this to refer to ivy.Container when these methods are on ivy.Array? Can you revert you're changes to this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Sam. I have changed it.

I thought like in Ivy; there are separate implementations for:

Regular array operations (on ivy.Array)
Container operations (on ivy.Container) which apply functions to nested arrays

so when working with a single array instead of a container, you would use ivy.conv1d_transpose or ivy.static_conv1d_transpose directly on an ivy.Array . Thats why i thought like for multiple arrays we must use container. But now i got it reading through docs again.

Comment on lines 163 to 164
x: Union[tf.Tensor, tf.Variable],
filters: Union[tf.Tensor, tf.Variable],
x: Union[ivy.Array, ivy.NativeArray],
filters: Union[ivy.Array, ivy.NativeArray],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was correct before.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Yeah that's correct I have been parallelly working on other issue so i might have changed this code mistakenly.
Thank you

ret_np, ret_from_gt_np = ivy.promote_types_of_inputs(ret_np, ret_from_gt_np)
ret_dtype = str(ret_np.dtype)
ret_from_gt_dtype = str(ret_from_gt_np.dtype).replace("longlong", "int64")
assert ret_dtype == ret_from_gt_dtype, (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably shouldn't be making any changes to this file.

Ajay6601 and others added 4 commits July 23, 2025 07:35
@Ajay6601 Ajay6601 closed this Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Ivy Failing Test: tensorflow - norms.batch_norm Fix Ivy Failing Test: jax - norms.batch_norm

2 participants