Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncomment tests that are passing. #8035

Merged
merged 3 commits into from
Sep 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 4 additions & 59 deletions experimental/torch_xla2/test/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"_segment_reduce",
"_upsample_bilinear2d_aa",
"bincount", # NOTE: dtype for int input torch gives float. This is weird.
"block_diag",
"byte",
"cat",
"cauchy",
"cdist",
"ceil",
"cholesky",
"cholesky_inverse",
"cholesky_solve",
Expand All @@ -29,18 +29,13 @@
"diagflat",
"diagonal_copy",
"diagonal_scatter",
"diff",
"digamma",
"erfc",
"erfinv",
"expand",
"exponential",
"floor_divide",
"gather",
"gcd",
"geometric",
"geqrf",
"grid_sampler_2d",
"histogram", # hard op: AssertionError: Tensor-likes are not close!
"histogramdd", # TypeError: histogram requires ndarray or scalar arguments, got <class 'list'> at position 1.
"igammac",
Expand Down Expand Up @@ -68,7 +63,6 @@
"linalg.matrix_norm",
"linalg.matrix_power",
"linalg.matrix_rank",
"linalg.multi_dot",
"linalg.norm",
"linalg.pinv",
"linalg.solve",
Expand All @@ -78,15 +72,13 @@
"linalg.svdvals",
"linalg.tensorinv",
"linalg.tensorsolve",
"linalg.vander",
"linalg.vector_norm",
"linspace",
"log_normal",
"logspace",
"lu",
"lu_solve",
"lu_unpack",
"masked.argmin",
"masked.median",
"masked_scatter",
"masked_select",
Expand All @@ -97,11 +89,9 @@
"mvlgamma",
"nanmedian",
"nanquantile",
"native_layer_norm",
"new_empty",
"new_empty_strided",
"nextafter",
"nn.functional.adaptive_avg_pool1d",
"nn.functional.adaptive_avg_pool3d",
"nn.functional.adaptive_max_pool1d",
"nn.functional.adaptive_max_pool2d",
Expand All @@ -110,17 +100,14 @@
"nn.functional.avg_pool1d",
"nn.functional.avg_pool2d",
"nn.functional.avg_pool3d",
"nn.functional.batch_norm",
"nn.functional.bilinear",
"nn.functional.binary_cross_entropy",
"nn.functional.conv2d",
"nn.functional.conv3d",
"nn.functional.conv_transpose1d",
"nn.functional.conv_transpose2d",
"nn.functional.conv_transpose3d",
"nn.functional.cosine_embedding_loss",
"nn.functional.cosine_similarity",
"nn.functional.cross_entropy",
"nn.functional.ctc_loss",
"nn.functional.dropout2d",
"nn.functional.dropout3d",
Expand All @@ -131,9 +118,7 @@
"nn.functional.fractional_max_pool3d",
"nn.functional.group_norm",
"nn.functional.hinge_embedding_loss",
"nn.functional.instance_norm",
"nn.functional.interpolate",
"nn.functional.layer_norm",
"nn.functional.margin_ranking_loss",
"nn.functional.max_pool1d",
"nn.functional.max_pool2d",
Expand All @@ -144,17 +129,12 @@
"nn.functional.multi_head_attention_forward",
"nn.functional.multi_margin_loss",
"nn.functional.multilabel_margin_loss",
"nn.functional.multilabel_soft_margin_loss",
"nn.functional.nll_loss",
"nn.functional.normalize",
"nn.functional.one_hot",
"nn.functional.pad",
"nn.functional.pairwise_distance",
"nn.functional.pixel_shuffle",
"nn.functional.pixel_unshuffle",
"nn.functional.poisson_nll_loss",
"nn.functional.rrelu",
"nn.functional.softmin",
"nn.functional.triplet_margin_loss",
"nn.functional.triplet_margin_with_distance_loss",
"nn.functional.unfold",
"nn.functional.upsample_nearest",
"nonzero",
Expand Down Expand Up @@ -187,54 +167,19 @@
"sub",
"svd",
"svd_lowrank",
"take_along_dim",
"to_sparse", # We are not supporting sparse tensors yet.
"triu",
"unbind",
"unfold_copy",
"unfold",
"unique_consecutive",
"unique",
"unravel_index",
"trunc",
"var_mean",
"zero_",
"argwhere",
"cumulative_trapezoid",
"expand_as",
"nanmean",
"bmm",
"broadcast_shapes",
"cartesian_prod",
"cdouble",
"ceil",
"chalf", # Skip due to jax not support complex32 with backend: https://github.com/google/jax/issues/14180
"nn.functional.smooth_l1_loss",
"nn.functional.soft_margin_loss",
"nn.functional.softplus",
"nn.functional.softshrink",
"nn.functional.softsign",
"nn.functional.tanhshrink",
"nn.functional.threshold",
"nn.functional.triplet_margin_loss",
"nn.functional.triplet_margin_with_distance_loss",
"nn.functional.upsample_bilinear",
"outer",
"permute",
"positive",
"rad2deg",
"randint",
"ravel",
"reciprocal",
"remainder",
"repeat",
"true_divide",
"trunc",
"unflatten",
"unsafe_chunk",
"unsafe_split",
"unsqueeze",
"view_as_complex",
"view_as",
}

# These inputs are themselves views
Expand Down
Loading