Open AdmiralSnyder opened 2 weeks ago
Hi, @AdmiralSnyder
I apologize for the delayed response and I was trying to replicate the same behavior from my end with your code snippet and I'm getting same result for reference I have added screenshot below:
When I'm trying something like below it seems like working fine, if I've missed something here please let me know. Thank you for your cooperation and patience.
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
Hey, the documentation clearly states that data.array should be able to consume a Tensor, rather than a Tensor[]:
Quote:
Parameters:
items (tf.void|number|string|TypedArray|tf.Tensor|tf.Tensor[]|{[key: string]:tf.Tensor|number|string}[]) An array of elements that will be parsed as items in a dataset.
which I read as: data.array consumes these types of things:
-> and since the simple case where you enter the single tensor into the data.array function clearly doesn't work, this is either a bug in the implementation or in the documentation -> the workaround of putting the tensor between square brackets is not acceptable.
System information
Describe the current behavior i am trying to create a dataset from a tensor, but that failed, see code:
Describe the expected behavior the dataset should be create-able
Standalone code to reproduce the issue