$ kubectl apply -f - <<EOF
<-- insert YAML content here -->
EOF
OR
$ cat file.yaml | kubectl apply -f -
$ kubectl apply -f - <<EOF
<-- insert YAML content here -->
EOF
OR
$ cat file.yaml | kubectl apply -f -
| >>> import pytz | |
| >>> | |
| >>> for tz in pytz.all_timezones: | |
| ... print tz | |
| ... | |
| ... | |
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers |
| import tensorflow as tf | |
| from tensorflow.python.framework import ops | |
| from tensorflow.python.ops import gen_nn_ops | |
| @ops.RegisterGradient("GuidedRelu") | |
| def _GuidedReluGrad(op, grad): | |
| return tf.select(0. < grad, gen_nn_ops._relu_grad(grad, op.outputs[0]), tf.zeros(grad.get_shape())) | |
| if __name__ == '__main__': | |
| with tf.Session() as sess: |