From 11a2b3799b26d0c5e803ffc5c4f3da6a5c140263 Mon Sep 17 00:00:00 2001 From: Qin Huang Date: Thu, 24 Jan 2019 23:21:25 -0800 Subject: [PATCH] logdevice for generic feature type (#16191) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/16191 logdevice related modifications for generic feature type we directly convert the generic feature structures to json strings, which corresponds to the column input in offline and dper Reviewed By: itomatik Differential Revision: D13551909 fbshipit-source-id: 807830c50bee569de202530bc3700374757793a2 --- caffe2/python/layers/feature_sparse_to_dense.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/caffe2/python/layers/feature_sparse_to_dense.py b/caffe2/python/layers/feature_sparse_to_dense.py index 8fd340b..f28772b 100644 --- a/caffe2/python/layers/feature_sparse_to_dense.py +++ b/caffe2/python/layers/feature_sparse_to_dense.py @@ -3,9 +3,11 @@ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np -from caffe2.python import schema +from caffe2.python import schema, dyndep from caffe2.python.layers.layers import ModelLayer +# @build:cpp_deps [ //caffe2/caffe2/fb/operators:parse_generic_op] +dyndep.InitOpsLibrary("@/caffe2/caffe2/fb/operators:parse_generic_op") class FeatureSparseToDense(ModelLayer): def __init__( -- 2.7.4