MCPcopy Create free account
hub / github.com/tensorflow/hub / testConfig

Method testConfig

tensorflow_hub/feature_column_v2_test.py:93–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 self.assertTrue(feature_column_v2.is_feature_column_v2([feature_column]))
92
93 def testConfig(self):
94 text_column = hub.text_embedding_column_v2(
95 "text", self.model, trainable=True)
96 config = text_column.get_config()
97 cloned_column = hub.feature_column_v2._TextEmbeddingColumnV2.from_config(
98 config)
99 self.assertEqual(cloned_column.module_path, text_column.module_path)
100
101 def testDenseFeaturesDirectly(self):
102 features = {

Callers

nothing calls this directly

Calls 2

from_configMethod · 0.80
get_configMethod · 0.45

Tested by

no test coverage detected