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

Removed is_variable attribute from ivy arrays #6043

Merged
merged 1 commit into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Let’s dive straight in and check out what the :class:`ivy.Array` constructor l
else:
self._post_repr = ")"
self.framework_str = ivy.current_backend_str()
self._is_variable = ivy.is_variable(self._data)

# Properties #
# -----------#
Expand Down
6 changes: 0 additions & 6 deletions ivy/array/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def _init(self, data):
else:
self._post_repr = ")"
self.backend = ivy.current_backend_str()
self._is_variable = ivy.is_variable(self._data)

# Properties #
# ---------- #
Expand Down Expand Up @@ -200,11 +199,6 @@ def T(self) -> ivy.Array:
ivy.assertions.check_equal(len(self._data.shape), 2)
return ivy.matrix_transpose(self._data)

@property
def is_variable(self) -> bool:
"""Determine whether the array is a trainable variable or not."""
return self._is_variable

# Setters #
# --------#

Expand Down