# tensorflow-abs

``` #!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Aug 27 11:16:32 2018```

``` @author: myhaspl """ # TensorFlow and tf.keras import tensorflow as tf ```

```sess=tf.Session() with sess: x = tf.constant([[-2.25 + 4.75j], [-3.25 + 5.75j]]) print x.eval() print tf.abs(x).eval() x=tf.constant([12.22,-32]) print x.eval() print tf.abs(x).eval() ```

## （转）Image Segmentation with Tensorflow using CNNs and Conditional Random Fields

Daniil's blog Machine Learning and Computer Vision artisan. About/ Blog/ Image Segmentation with Tensorflow using CNNs and Conditional Random Fields Tensorflow and TF-Slim | Dec 18, 2016 A post showing how to perform Image Segmentation with a recentl

## Tensorflow 梯度下降实例

# coding: utf-8 # #### 假设我们要最小化函数 \$y=x^2\$, 选择初始点 \$x_0=5\$ # #### 1. 学习率为1的时候,x在5和-5之间震荡. # In[1]: import tensorflow as tf TRAINING_STEPS = 10 LEARNING_RATE = 1 x = tf.Variable(tf.constant(5, dtype=tf.float32), name="x") y = tf.square(x) train_op

## Ubuntu16.04安装tensorflow+安装opencv+安装openslide+安装搜狗输入法

Ubuntu16.04在cuda以及cudnn安装好之后,安装tensorflow,tensorflow以及opencv可以到网上下载对应的安装包并且直接在安装包所在的路径下直接通过pip与conda进行安装,如下图所示: 前提是要下载好安装包.安装好tensorflow之后还需要进行在~/.bashrc文件中添加系统路径,如下图所示 Openslide是医学图像一个重要的库,这里给出三条命令进行安装 sudo apt-get install openslide-tools sudo apt-g