码迷,mamicode.com
首页 >  
搜索关键字:int32    ( 605个结果
tensorflow-队列(4)
#!/usr/bin/envpython2#-*-coding:utf-8-*-"""CreatedonThuSep610:16:372018@author:myhaspl"""importtensorflowastfn=100xQueue=tf.FIFOQueue(100,dtypes=[tf.int32],shapes=[])withtf.Session()assess:foriinxrang
分类:其他好文   时间:2018-12-25 01:04:12    阅读次数:160
MATLAB基本数据类型
MATLAB基本数据类型 整数 + int8 + int16 + int32 + int64 + 使用: a = int8(8), b = int64(a) 浮点型 + single + double 取整 + round + ceil + floor cell + c = {"Name", "JH ...
分类:其他好文   时间:2018-12-24 22:02:06    阅读次数:177
tensorflow-条件循环控制(3)
tf.count_up_totf.count_up_to(ref,limit,name=None)增加“ref”直到它达到“limit”参数:ref:一个变量,必须是int32,int64类型。必要来自于一个scalarVariable节点limit:一个int,如果增加ref在limit之上,将报错‘OutOfRange‘。name:操作名字(可选)返回:tensor,和ref类
分类:其他好文   时间:2018-12-19 19:31:04    阅读次数:146
TensorFlow-四则运算
importtensorflowastfa=tf.constant([[1,2],[3,4]])b=tf.constant([6,6])result=tf.add(a,b)sess=tf.Session()sess.run(result)array([[7,8],[9,10]],dtype=int32)c=tf.constant([[1,2,3],[4,5,6]])result3=a*bsess.
分类:其他好文   时间:2018-12-18 23:45:45    阅读次数:253
MVC下垃框的使用
模型 /// <summary> /// 状态 /// =0 下架 =1 上架 /// </summary> public System.Int32 Status { get; set; } 视图 <tr> <th>状态:</th> <td> <select name="Status" id="St ...
分类:Web程序   时间:2018-12-17 14:35:02    阅读次数:203
ADO.NET基础必备之SqlCommand.Execute三方法
SqlCommand.ExecuteNonQuery 方法 对连接执行 Transact-SQL 语句并返回受影响的行数。 ――语法: public override int ExecuteNonQuery() ――返回值 类型:System..::.Int32 受影响的行数。 ――可以使用 Exe ...
分类:数据库   时间:2018-12-17 02:05:40    阅读次数:248
Unable to cast object of type 'System.Int32' to type 'System.String'.
最近在研究.netcore,尝试把前后端完全分离。但是在写接口的时候,Post参数是FromBody的时候报错了 关键错误点Unable to cast object of type 'System.Int32' to type 'System.String'.提示是无法将“System.Int32 ...
分类:其他好文   时间:2018-12-13 01:14:23    阅读次数:209
golang语言学习第二课:变量类型及常量与枚举
go语言的变量类型: bool (true为0,false不等于0), string int 分好多种int,有点头晕,但用默认的int就足够了,根据机器判断,是32位的用int32,是64位的用int64. byte, 又是uint8的别名。 rune(类似char,但是是utf-8编码的char ...
分类:编程语言   时间:2018-12-05 23:20:23    阅读次数:341
golang中锁mutex的实现
golang中的锁是通过CAS原子操作实现的,Mutex结构如下: type Mutex struct { state int32 sema uint32 } type Mutex struct { state int32 sema uint32 } //state表示锁当前状态,每个位都有意义,零 ...
分类:其他好文   时间:2018-12-05 02:08:59    阅读次数:181
LINQ to Entities does not recognize the method 'Int32 ToInt32(System.String)' method, and this method cannot be translated into a store expression
if (!string.IsNullOrEmpty(FarmWorkId)) { data = data.Where(p => p.TypeId == Convert.ToInt32(FarmWorkId)); } 解决方法: if (!string.IsNullOrEmpty(FarmWorkId ...
分类:其他好文   时间:2018-11-27 19:42:06    阅读次数:203
605条   上一页 1 ... 8 9 10 11 12 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!