writer=tf.summary.create_file_writer("/tmp/mylogs")@tf.functiondeff():x=constant_op.constant(2)y=constant_op.constant(3)returnx**ywithwriter.as_default():tf.summary.graph(f.get_concrete_function().graph)# Another example: in a very rare use case, when you are dealing with a TF v1# graph.graph=tf.Graph()withgraph.as_default():c=tf.constant(30.0)withwriter.as_default():tf.summary.graph(graph)
[[["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 2026-10-31 UTC."],[],[]]