Uploaded image for project: ' Swift for TensorFlow'
  1. Swift for TensorFlow
  2. TF-447

Improve TensorShape printing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Component/s: Stdlib
    • Labels:

      Description

      TensorShape's default printing includes the parameter label, which isn't necessary or helpful, particularly given that it mismatches the initializer:

      ```
      > print(bias.shape)

      TensorShape(dimensions: [10])
      ```

      It would be better to print as `TensorShape([10])`

        Attachments

          Activity

            People

            Assignee:
            ksasi Sasikanth Kotti
            Reporter:
            clattner Chris Lattner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: