"comment":"\n Creates a print op that will print when a tensor is accessed.\n\n Wraps the tensor passed in so that whenever that a tensor is accessed,\n the message `message` is printed, along with the current value of the\ntensor `t`.",
"comment":"\nCreates a print op that will print when a tensor is accessed.\n\nWraps the tensor passed in so that whenever that a tensor is accessed,\nthe message `message` is printed, along with the current value of the\ntensor `t`.",
"inputs":[
"inputs":[
{
{
"name":"input",
"name":"In",
"comment":"the tensor that will be displayed.",
"comment":"Input tensor to be displayed.",
"duplicable":0,
"intermediate":0
}],
"outputs":[
{
"name":"Out",
"comment":"Output tensor with same data as input tensor.",
"duplicable":0,
"duplicable":0,
"intermediate":0
"intermediate":0
}],
}],
"outputs":[],
"attrs":[
"attrs":[
{
{
"name":"first_n",
"name":"first_n",
...
@@ -52,7 +58,7 @@
...
@@ -52,7 +58,7 @@
},{
},{
"name":"summarize",
"name":"summarize",
"type":"int",
"type":"int",
"comment":"Print this number of elements in the tensor.",
"comment":"Number of elements printed.",
"generated":0
"generated":0
},{
},{
"name":"print_tensor_name",
"name":"print_tensor_name",
...
@@ -74,6 +80,11 @@
...
@@ -74,6 +80,11 @@
"type":"bool",
"type":"bool",
"comment":"Whether to print the tensor's lod.",
"comment":"Whether to print the tensor's lod.",
"generated":0
"generated":0
},{
"name":"print_phase",
"type":"string",
"comment":"(string, default 'BOTH') Which phase to display including 'FORWARD' 'BACKWARD' and 'BOTH'.",