From an answer to my previous question, I have this:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes}
\usetikzlibrary{positioning}
\begin{document}
\pagestyle{empty}
\def\layersep{2.5cm}
\begin{tikzpicture}[
shorten >=1pt,->,draw=black!50, node distance=\layersep,
every pin edge/.style={<-,shorten <=1pt},
neuron/.style={circle split,fill=black!25,minimum size=17pt,inner sep=0pt},
input neuron/.style={neuron, fill=green!50},
output neuron/.style={neuron, fill=red!50},
compute neuron/.style={neuron, fill=blue!50},
annot/.style={text width=4em, text centered}
]
% Draw the input layer nodes
\foreach \name / \y in {1,...,4}
% This is the same as writing \foreach \name / \y in {1/1,2/2,3/3,4/4}
\node[input neuron, pin position=-90, rotate=90] (I-\name) at (0,-\y) {};
\node[left=1pt of I-1]{$h_0$};
% Draw the compute layer nodes
\foreach \name / \y in {1,...,5}
\path[yshift=0.5cm]
node[compute neuron,rotate=90] (C-\name) at (\layersep,-\y cm) {};
% Draw the output layer node
\node[output neuron,pin={[pin edge={->}]right:Output}, right of=C-3,rotate=90] (O) {};
% Connect every node in the input layer with every node in the
% compute layer.
\foreach \source in {1,...,4}
\foreach \dest in {1,...,5}
\path (I-\source) edge (C-\dest);
% Connect every node in the compute layer with the output layer
\foreach \source in {1,...,5}
\path (C-\source) edge (O);
% Annotate the layers
\node[annot,above of=C-1, node distance=1cm] (hl) {compute layer};
\node[annot,left of=hl] {Input layer};
\node[annot,right of=hl] {Compute layer};
\end{tikzpicture}
% End of code
\end{document}
Notice the problem with the $h_0$ label. I want that label to be to the left of the node. I want other labels to be above nodes. How can I achieve this? The rotation of the node to accommodate the vertical line seems to affect the label, but I need both.

label? – cfr Jun 01 '17 at 04:01