class_docstr: A tensor with mutable shape information.
  Inspired by `Ideal FLOPS counter <https://dev-discuss.pytorch.org/t/the-ideal-pytorch-flop-counter-with-torch-dispatch/505>`__.
class_docstr_tok: ["A","tensor","with","mutable","shape","information",".","Inspired","by","`","Ideal","FLOPS","counter","<","https",":","\/\/dev-discuss.pytorch.org\/t\/the-ideal-pytorch-flop-counter-with-torch-dispatch\/505",">","`","__","."]
docstr: :meth:`view` is very similar to ``Tensor.view()``
  except the input shape could be :class:`IntProxy` and the output shape is :class:`ShapeTensor`.
docstr_tok: [":","meth",":","`","view","`","is","very","similar","to","``","Tensor.view","(",")","``","except","the","input","shape","could","be",":","class",":","`","IntProxy","`","and","the","output","shape","is",":","class",":","`","ShapeTensor","`","."]
code: def view(self, *shape: IntProxy | int) -> ShapeTensor:
      """:meth:`view` is very similar to ``Tensor.view()``
      except the input shape could be :class:`IntProxy` and the output shape is :class:`ShapeTensor`.
      """
      if len(shape) == 1 and isinstance(shape[0], (tuple, list)):
          shape = shape[0]  # type: ignore
      rv = self.elem.view(*shape)
      if self.real_shape is None:
          return ShapeTensor(rv)
      return self._view_impl(rv, *shape)
  
imports: from __future__ import annotations
  import functools
  import logging
  import traceback
  from typing import Union, Tuple, Callable, Iterable, Any, NamedTuple, Dict, cast, overload
  import torch
  from torch import nn
  from torch.utils.hooks import RemovableHandle
  from nni.mutable import MutableExpression, Mutable, LabeledMutable, Sample, SampleValidationError
  from nni.mutable.mutable import _mutable_equal
  from .misc import is_leaf_module, argument_in_spec
label_desc: Use image node_id 6 for calling the ShapeTensor obj's underlying member method code with example usage: obj.view() and returns: self, ShapeTensor