How to use the bigdl.nn.layer.Layer.of function in bigdl

To help you get started, we’ve selected a few bigdl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / net.py View on Github external
def flattened_layers(self, include_container=False):
        jlayers = callBigDlFunc(self.bigdl_type, "getFlattenSubModules", self, include_container)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers
github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / net / graph_net.py View on Github external
def layers(self):
        jlayers = callZooFunc(self.bigdl_type, "getSubModules", self)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers
github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / keras / engine / topology.py View on Github external
def layers(self):
        jlayers = callZooFunc(self.bigdl_type, "getSubModules", self)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers
github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / net / graph_net.py View on Github external
def flattened_layers(self, include_container=False):
        jlayers = callZooFunc(self.bigdl_type, "getFlattenSubModules", self, include_container)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers
github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / net.py View on Github external
    @property
    def layers(self):
        jlayers = callBigDlFunc(self.bigdl_type, "getSubModules", self)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers
github intel-analytics / BigDL / pyspark / bigdl / optim / optimizer.py View on Github external
def optimize(self):
        """
        Do an optimization.
        """
        jmodel = callJavaFunc(self.value.optimize)
        from bigdl.nn.layer import Layer
        return Layer.of(jmodel)
github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / keras / engine / topology.py View on Github external
    @property
    def layers(self):
        jlayers = callBigDlFunc(self.bigdl_type, "getSubModules", self)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers
github intel-analytics / analytics-zoo / pyzoo / zoo / pipeline / api / net.py View on Github external
def flattened_layers(self, include_container=False):
        jlayers = callBigDlFunc(self.bigdl_type, "getFlattenSubModules", self, include_container)
        layers = [Layer.of(jlayer) for jlayer in jlayers]
        return layers