Skip to content

Instantly share code, notes, and snippets.

@njtierney
Created January 16, 2024 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njtierney/e4273237243c7d98f33844e5691af797 to your computer and use it in GitHub Desktop.
Save njtierney/e4273237243c7d98f33844e5691af797 to your computer and use it in GitHub Desktop.

TensorShape conversions remain stable

... Offending code

x <- shape(NA, 3)
tensorflow::as_tensor(x)
-                Tensor("Const_8:0", shape=(2,), dtype=int32)            
+                Tensor("Const_8:0", shape=(2), dtype=int32)            
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment