LogoLogo
  • Tensorleap
  • Examples
    • Semantic Segmentation
    • Image Analysis
    • Sentiment Analysis
    • MNIST Project Walkthrough
    • IMDB Project Walkthrough
  • Quickstart using CLI
  • Guides
    • Full Guides
      • MNIST Guide
        • Dataset Integration
        • Model Integration
        • Model Perception Analysis
        • Advanced Metrics
      • IMDB Guide
        • Dataset Integration
        • Model Integration
        • Model Perception Analysis
        • Advanced Metrics
    • Integration Script
      • Preprocess Function
      • Input Encoder
      • Ground Truth Encoder
      • Metadata Function
      • Visualizer Function
      • Prediction
      • Custom Metrics
      • Custom Loss Function
      • Custom Layers
      • Unlabeled Data
      • Examples
        • CelebA Object Detection (YoloV7)
        • Wikipedia Toxicity (using Tensorflow Datasets)
        • Confusion Matrix
        • CelebA Classification (using GCS)
  • Platform
    • Resources Management
    • Project
    • Dataset
    • Secret Manager
    • Network
      • Dataset Node
      • Layers
      • Loss and Optimizer
      • Visualizers
      • Import Model
      • Metrics
    • Evaluate / Train Model
    • Metrics Dashboard
    • Versions
    • Issues
    • Tests
    • Analysis
      • helpers
        • detection
          • YOLO
    • Team management
    • Insights
  • API
    • code_loader
      • leap_binder
        • add_custom_metric
        • set_preprocess
        • set_unlabeled_data_preprocess
        • set_input
        • set_ground_truth
        • set_metadata
        • add_prediction
        • add_custom_loss
        • set_visualizer
      • enums
        • DatasetMetadataType
        • LeapDataType
      • datasetclasses
        • PreprocessResponse
      • visualizer_classes
        • LeapImage
        • LeapImageWithBBox
        • LeapGraph
        • LeapText
        • LeapHorizontalBar
        • LeapImageMask
        • LeapTextMask
  • Tips & Tricks
    • Import External Code
  • Legal
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  • Add a Layer
  • Layer Properties
  • Connections
  • Remove Connections
  • Layer Operations
  • Duplicate a Layer
  • Remove a Layer
  • Spawn a Representation Block for Layer Weights Sharing

Was this helpful?

  1. Platform
  2. Network

Layers

Set up your network with Layers

PreviousDataset NodeNextLoss and Optimizer

Last updated 3 years ago

Was this helpful?

A layer performs complex mathematical computations to extract features from input data. It then outputs the transformed data and passes them to the next layer in the network.

Layers encapsulate weights, or states, which are actively tracked and continuously updated during model training.

Add a Layer

Layers are added to a network after the has been set up.

To add a layer to your network:

  1. On the Network view, right-click anywhere to open a menu, from which you can select the type of layer to be added to your project.

  2. Click the layer block when it appears on the Network view, then set the panel.

Layer Properties

The Layer Properties panel appears to the right when you click a Layer on the Network view. From here, you can set the properties associated with a layer.

For example, for a Conv2D layer, you may want to change the number of filters, kernel size, and activation type.

Connections

Once layers have been added to your project, you can start connecting them to each other.

Starting from the Dataset Block, grab the layer's right handle and drag it to the next layer's left handle. Perform the same procedure for the rest of the layers.

When connecting layers, each block shows the calculated output shape affected by the preceding layers.

Set up the Dataset Block first before connecting it to the first layer on the network. For more information, see Dataset Node.

Remove Connections

If you make a mistake when connecting layers, remove the connection by grabbing the layer's left handle and dragging it away from the layer.

Layer Operations

Layers can be duplicated, deleted, and spawned. You can also copy a layer's properties and apply them to another layer.

Duplicate a Layer

When duplicating a layer, the layer, including its properties, are copied into the Network view. However, the connections between the layer and adjacent layers are not copied.

This is helpful when laying out two or more of the same type of layer onto the network. If the layer properties are different, you can just edit them later.

To duplicate a layer:

  1. From the Network view, position your mouse cursor over the layer to be duplicated, then make a right click.

Remove a Layer

If you make a mistake while adding a layer, or you do not need a layer anymore, you can remove it from the network.

To remove a layer:

All connections to and from the deleted layer are also removed.

Spawn a Representation Block for Layer Weights Sharing

Layer weights-sharing, or parameter sharing, means to use a layer's weights in more than one place within the model. This is often used when similar features are extracted from different places within the model. Instead of creating an additional layer, these weights are shared, thus reducing the overall number of trainable parameters and training time.

Add a to a network after the last layer. After saving, the network becomes available for training and evaluation (see ).

This same set of operations is also applicable to Loss and Optimizer blocks, which are also layers. See for more information.

On the popup menu, click to duplicate the layer onto the network.

If your layers are already connected, you may have to remove the connections, insert the duplicated layer in the desired position, then reconnect the layers together. See for more information.

From the view, position your mouse cursor over the layer to be removed, then make a right click.

On the popup menu, click to remove the layer from the network.

Loss and Optimizer
Evaluate / Train Model
Loss and Optimizer
Network
Connections
Dataset Block
Layer Properties
Adding a layer
Editing layer properties
Connecting layers
Removing layer connections
Duplicating a layer
Removing a layer