Tensorflow
weixin_39943271
这个作者很懒,什么都没留下…
展开
-
tf.multiply与tf.matmul
(1)tf.multiply是点乘,即Returns x * y element-wise.(2)tf.matmul是矩阵乘法,即Multiplies matrix a by matrix b, producing a * b.转载 2018-01-13 11:26:50 · 904 阅读 · 0 评论 -
tf.reshape
tf.reshape reshape( tensor, shape, name=None)Defined in tensorflow/python/ops/gen_array_ops.py.See the guide: Tensor Transformations > Shapes and ShapingReshapes a tensor.转载 2018-01-15 11:04:45 · 492 阅读 · 0 评论 -
Module implementing RNN Cells
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use t转载 2018-01-15 21:31:17 · 1450 阅读 · 0 评论 -
Argparse中action的可选参数store_true,store_false
parser.add_argument('-c', action='store_true', default=false)#python test.py -c => c是true(因为action)#python test.py => c是false(default)转载 2018-01-16 16:28:49 · 29307 阅读 · 0 评论 -
python socket编程
Python 提供了两个基本的 socket 模块。 第一个是 Socket,它提供了标准的 BSD Sockets API。 第二个是 SocketServer, 它提供了服务器中心类,可以简化网络服务器的开发。下面讲的是Socket模块功能Socket 类型套接字格式:socket(family,type[,protoca转载 2018-01-17 10:33:48 · 189 阅读 · 0 评论 -
cv2.imread()
cv2.imread()使用opencv和caffe的伙伴们,可能会有一个疑问,那就是对于同时读取图片的cv2.imread()和caffe.io.loadimage两个函数,有什么差别?1、cv2.imread()接口读图像,读进来直接是BGR 格式数据格式在 0~255,通道格式为(W,H,C)2、caffe.io.load_image()读进来是RGB格式和 0~1(转载 2018-01-17 15:43:29 · 57068 阅读 · 5 评论 -
tf.FIFOQueue
Class FIFOQueueInherits From: QueueBaseDefined in tensorflow/python/ops/data_flow_ops.py.See the guides: Inputs and Readers > Queues, Threading and Queues > Queue usage overview, Threading and QueuesA转载 2018-01-18 11:16:16 · 1316 阅读 · 0 评论 -
tf.nn.dynamic_rnn
tf.nn.dynamic_rnn dynamic_rnn( cell, inputs, sequence_length=None, initial_state=None, dtype=None, parallel_iterations=None, swap_memory=False, time_major=False,转载 2018-01-18 16:10:43 · 4624 阅读 · 0 评论