- 博客(12)
- 收藏
- 关注
原创 tensorboard的使用
tensorboard使用self.write= tf.summary.FileWriter('log/')输入的文件目录self.write.add_graph(self.sess.graph)添加逻辑图summary = tf.Summary(value=[tf.Summary.Value(tag="total_step", simple_value=total)])//total为要画的变量,tag是y轴名字write.add_summary(summary, temp_step)...
2020-10-14 19:58:59
178
原创 python 各种函数及应用技巧
1.import osos.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' #此方法,可以临时屏蔽警告信息2..placeholder()函数是在神经网络构建graph的时候在模型中的占位,此时并没有把要输入的数据传入模型,它只会分配必要的内存。等建立session,在会话中,运行模型的时候通过feed_dict()函数向占位符喂入数据。 import tensorflow as tf import numpy as np input.
2020-10-14 19:11:04
258
原创 Prim算法
1003 电话连线 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold题解题目描述 Description一个国家有n个城市。若干个城市之间有电话线连接,现在要增加m条电话线(电话线当然是双向的了),使得任意两个城市之间都直接或间
2017-11-28 21:53:32
231
原创 (POJ) 区间贪心
Cleaning ShiftsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 24787 Accepted: 6184DescriptionFarmer John is assigning some of his N (1 <= N <= 25,000)
2017-11-06 22:37:16
237
原创 最小表示法
打不死的小强,拖不跨,打不倒。。。#include #include #include using namespace std;int getmin(char *s){ int n=strlen(s); int i=0,j=1,k=0,t; while(i { t=s[(i+k)%n]-s[(
2017-05-02 22:23:16
194
原创 Follow me--挑战程序与设计
Fence RepairTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 47126 Accepted: 15393DescriptionFarmer John wants to repair a small length of the fence arou
2017-04-23 22:31:07
309
原创 Follow me--挑战程序与设计
ExpeditionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15594 Accepted: 4376DescriptionA group of cows grabbed a truck and ventured on an expedition dee
2017-04-23 22:25:14
234
原创 Follow me 挑战程序与设计
Saruman's ArmyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9887 Accepted: 4972DescriptionSaruman the White must lead his army along a straight path f
2017-04-17 17:06:50
426
原创 Follow me 挑战程序与设计
Best Cow LineTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 23474 Accepted: 6379DescriptionFJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annu
2017-04-16 11:04:20
213
原创 Follow me 挑战程序与设计
Lake CountingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 34073 Accepted: 16954DescriptionDue to recent rains, water has pooled in various places in Fa
2017-04-15 11:03:04
289
原创 Follow me 挑战程序与设计
AntsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17563 Accepted: 7471DescriptionAn army of ants walk on a horizontal pole of length l cm, each with a c
2017-04-13 16:52:39
299
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人