We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sum
See source in https://github.com/google/TensorNetwork/blob/master/tensornetwork/backends/numpy/numpy_backend.py#L607.
def sum(self, tensor: Tensor, axis: Optional[Sequence[int]] = None, keepdims: bool = False) -> Tensor: return np.sum(tensor, axis=tuple(axis), keepdims=keepdims)
Therefore, sum(tensor) raises error for tuple(None)
sum(tensor)
tuple(None)
The text was updated successfully, but these errors were encountered:
thanks! Could you add a few lines regarding expected behaviour?
Sorry, something went wrong.
I guess return np.sum(tensor, axis=axis, keepdims=keepdims) is enough? Actually no idea why there is a tuple
return np.sum(tensor, axis=axis, keepdims=keepdims)
tuple
Hey, I would like to work on this, can you please assign this one to me.
No branches or pull requests
See source in https://github.com/google/TensorNetwork/blob/master/tensornetwork/backends/numpy/numpy_backend.py#L607.
Therefore,
sum(tensor)
raises error fortuple(None)
The text was updated successfully, but these errors were encountered: