Platforms

All supported platforms in the SensiML Toolkit can be loaded with a simple function call:

client.platforms()

There are two ways to select your chosen platform:

# The first way
chosen_platform = client.platforms[1]
# The second way
chosen_platform = client.platforms.get_platform_by_name('Amulet 4.1')
# Print out platform information
chosen_platform()
# Set the device configuration to the desired platform
client.pipeline.set_device_configuration(platform=chosen_platform, debug=False)

Copyright 2017-2024 SensiML Corporation

This file is part of SensiML™ Piccolo AI™.

SensiML Piccolo AI is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SensiML Piccolo AI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with SensiML Piccolo AI. If not, see <https://www.gnu.org/licenses/>.

class sensiml.datamanager.clientplatformdescriptions.ClientPlatformDescriptions(connection: Connection)

Base class for a collection of functions

build_platform_descriptions()

Populates the platform_list property from the server.

get_platforms(function_type='') list[sensiml.datamanager.clientplatformdescription.ClientPlatformDescription]

Gets all functions as function objects.

Parameters

function_type (optional[str]) – type of function to retrieve

Returns

list of functions

Copyright 2017-2024 SensiML Corporation

This file is part of SensiML™ Piccolo AI™.

SensiML Piccolo AI is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SensiML Piccolo AI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with SensiML Piccolo AI. If not, see <https://www.gnu.org/licenses/>.

class sensiml.datamanager.clientplatformdescription.ClientPlatformDescription(connection: Connection)

Base class for a PlatformDescription object

get_config(test_data: str = '', debug: bool = False, target_processor: Optional[ProcessorDescription] = None, target_compiler: Optional[CompilerDescription] = None, target_application: Optional[str] = None, float_options: Optional[str] = None, platform_version: str = '')

Generates a default configuration dictionary for downloading a knowledgepack using this platform programmatically

Parameters
  • test_data (str) – name of test data file to load onto knowledge pack,

  • debug (bool) – Build option for knowledge pack. Debug mode will have extra printouts to help with debugging issues.

initialize_from_dict(input_dictionary)

Populates a single transform object from a dictionary of properties from the server.

refresh()

Calls the REST API and populates the local object properties from the server.