
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
create-tensorify-plugin
Advanced tools
Create Tensorify plugins with the latest SDK - Linear layer template
{{description}}
A Tensorify plugin that implements a PyTorch Linear/Dense layer with customizable input/output features and bias settings.
npm install
import {{projectName}}LinearLayer from './dist/index.js';
// Create a linear layer instance
const linearLayer = new {{projectName}}LinearLayer();
// Generate code with custom settings
const code = linearLayer.getTranslationCode({
inFeatures: 784,
outFeatures: 128,
bias: true
});
console.log(code);
// Output: my_plugin_linear_layer = nn.Linear(784, 128, bias=True)
The linear layer accepts the following settings:
Setting | Type | Default | Description |
---|---|---|---|
inFeatures | number | 784 | Number of input features |
outFeatures | number | 128 | Number of output features |
bias | boolean | true | Whether to include bias term |
# Build TypeScript
pnpm run build
# Watch mode for development
pnpm run dev
# Run tests
npm test
{
inFeatures: 784,
outFeatures: 128
}
{
inFeatures: 512,
outFeatures: 256,
bias: false
}
{
inFeatures: 64,
outFeatures: 32,
bias: true
}
src/index.ts
- Main plugin implementationmanifest.json
- Plugin metadata and configurationtest.js
- Plugin teststsconfig.json
- TypeScript configurationThis plugin generates PyTorch code for Linear layers:
import torch
import torch.nn as nn
# {{projectName}} Linear Layer: 784 -> 128 features
{{projectName}}_linear_layer = nn.Linear(784, 128, bias=True)
This plugin is built with the Tensorify SDK v0.0.1 and extends the ModelLayerNode
base class for optimal compatibility and functionality.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)MIT © {{year}} {{author}}
This plugin was created using create-tensorify-plugin.
FAQs
Create Tensorify plugins with the latest SDK - Linear layer template
The npm package create-tensorify-plugin receives a total of 1,484 weekly downloads. As such, create-tensorify-plugin popularity was classified as popular.
We found that create-tensorify-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.