27187bfff545ef066da5627d7dff8a6caad19e9e,tensorflow_transform/impl_helper_test.py,ImplHelperTest,testImportAndExportSparse,#ImplHelperTest#,206
Before Change
def testImportAndExportSparse(self):
// Export the function "z = x + y"
g = tf.Graph()
with g.as_default():
x = tf.sparse_placeholder(tf.float32)
y = tf.sparse_placeholder(tf.float32)
z = tf.sparse_add(x, y)
After Change
return {
"z": api.map(tf.sparse_add, inputs["x"], inputs["y"])
}
input_schema = self.toSchema({
"x": tf.VarLenFeature(tf.float32),
"y": tf.VarLenFeature(tf.float32)
})
inputs, outputs = impl_helper.run_preprocessing_fn(
preprocessing_fn, input_schema)
saved_model_dir = os.path.join(self.get_temp_dir(), "sparse")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: tensorflow/transform
Commit Name: 27187bfff545ef066da5627d7dff8a6caad19e9e
Time: 2017-02-16
Author: no-reply@google.com
File Name: tensorflow_transform/impl_helper_test.py
Class Name: ImplHelperTest
Method Name: testImportAndExportSparse
Project Name: tensorflow/transform
Commit Name: 27187bfff545ef066da5627d7dff8a6caad19e9e
Time: 2017-02-16
Author: no-reply@google.com
File Name: tensorflow_transform/impl_helper_test.py
Class Name: ImplHelperTest
Method Name: testImportAndExportDense
Project Name: tensorflow/transform
Commit Name: 27187bfff545ef066da5627d7dff8a6caad19e9e
Time: 2017-02-16
Author: no-reply@google.com
File Name: tensorflow_transform/impl_helper_test.py
Class Name: ImplHelperTest
Method Name: testRunTransformFnBadTransform
Project Name: tensorflow/transform
Commit Name: 27187bfff545ef066da5627d7dff8a6caad19e9e
Time: 2017-02-16
Author: no-reply@google.com
File Name: tensorflow_transform/impl_helper_test.py
Class Name: ImplHelperTest
Method Name: testRunTransformFn