tf.fill only supports scalar contents, whereas tf.constant supports
Tensor values.
tf.fill creates an Op in the computation graph that constructs the actual
Tensor value at runtime. This is in contrast to tf.constant which embeds
the entire Tensor into the graph with a Const node.
Because tf.fill evaluates at graph runtime, it supports dynamic shapes
based on other runtime Tensors, unlike tf.constant.
Args
dims
A Tensor. Must be one of the following types: int32, int64.
1-D. Represents the shape of the output tensor.
value
A Tensor. 0-D (scalar). Value to fill the returned tensor.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]