当前位置: 首页>>代码示例>>Python>>正文


Python application.parse_event_files_spec函数代码示例

本文整理汇总了Python中tensorflow.tensorboard.backend.application.parse_event_files_spec函数的典型用法代码示例。如果您正苦于以下问题:Python parse_event_files_spec函数的具体用法?Python parse_event_files_spec怎么用?Python parse_event_files_spec使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了parse_event_files_spec函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testDoesNotNormalizeGCSPath

 def testDoesNotNormalizeGCSPath(self):
   logdir = 'gs://foo/./path//..'
   expected = {'gs://foo/./path//..': None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例2: testRunNameWithGCSPath

 def testRunNameWithGCSPath(self):
   logdir = 'lol:gs://foo/path'
   expected = {'gs://foo/path': 'lol'}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例3: testRespectsHDFSPath

 def testRespectsHDFSPath(self):
   logdir = 'hdfs://foo/path'
   expected = {'hdfs://foo/path': None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例4: testDoesNotExpandUserInGCSPath

 def testDoesNotExpandUserInGCSPath(self):
   logdir = 'gs://~/foo/path'
   expected = {'gs://~/foo/path': None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例5: testAbsolutifies

 def testAbsolutifies(self):
   logdir = 'lol/cat'
   expected = {os.path.realpath('lol/cat'): None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例6: testNormalizesPaths

 def testNormalizesPaths(self):
   logdir = '/lol/.//cat/../cat'
   expected = {'/lol/cat': None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例7: testMultipleDirectories

 def testMultipleDirectories(self):
   logdir = '/a,/b'
   expected = {'/a': None, '/b': None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例8: testPathWithColonThatComesAfterASlash_isNotConsideredARunName

 def testPathWithColonThatComesAfterASlash_isNotConsideredARunName(self):
   logdir = '/lol:/cat'
   expected = {'/lol:/cat': None}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py

示例9: testRunName

 def testRunName(self):
   logdir = 'lol:/cat'
   expected = {'/cat': 'lol'}
   self.assertEqual(application.parse_event_files_spec(logdir), expected)
开发者ID:AlbertXiebnu,项目名称:tensorflow,代码行数:4,代码来源:application_test.py


注:本文中的tensorflow.tensorboard.backend.application.parse_event_files_spec函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。