목록2019/04 (7)
MJay
The Wildcard Character The . (or dot) character in a regular expression is called a wildcard and will match any character except for a newline. For example, enter the following into the interactive shell: >>> atRegex = re.compile(r'.at') >>> atRegex.findall('The cat in the hat sat on the flat mat.') ['cat', 'hat', 'sat', 'lat', 'mat'] Remem..
five benefits of infrastructural outsourcing: Reduced labor cost Reduced risk Reduced resource cost Increased flexibility of scaling Shorter lead time Reduced Labor Cost Serverless was fundamentally about no longer needing to look after your own server processes you care about your application’s business logic and state, and you let someone else look after whatever else is necessary for those to..
Greedy and Nongreedy Matching Since (Ha){3,5} can match three, four, or five instances of Ha in the string 'HaHaHaHaHa', you may wonder why the Match object’s call to group() in the previous curly bracket example returns 'HaHaHaHaHa' instead of the shorter possibilities. After all, 'HaHaHa' and 'HaHaHaHa' are also valid matches of the regular expression (Ha){3,5}...
conv1 만 프린트 하는 command print (tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='conv1')) variable 읽는 코드 (sort팅) reader = tf.train.load_checkpoint("/tmp/mj/cifar10_train") variable_map = reader.get_variable_to_shape_map() names = (variable_map.keys()) result = [] for name in names: result.append((name, variable_map[name])) pprint.pprint(result) reader = tf.train.NewCheckpointReader(..