def get_tensor_children_placeholders(tensor):
 placeholders_list = []
 if (tensor.op.type == 'Placeholder'):
  placeholders_list.append(tensor)
 if tensor.op:
  for t in tensor.op.outputs:
   if (not ('read:0' in t.name)):
    placeholders_list += get_tensor_children_placeholders(t)
 return list(set(placeholders_list))

def get_tensor_children_placeholders ( tensor ) : placeholders_list = [ ] if ( tensor . op . type == 'Placeholder' ) : placeholders_list . append ( tensor ) if tensor . op : for t in tensor . op . outputs : if ( not ( 'read:0' in t . name ) ) : placeholders_list += get_tensor_children_placeholders ( t ) return list ( set ( placeholders_list ) )
get all placeholders that is depending the given tensor .