Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thop 0.1.1.post2209072238 ❄️ #1

Merged
merged 3 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
About <pkg_name>-feedstock
About thop-feedstock
=======================

Feedstock license: [BSD-3-Clause](LICENSE)

Home: <home_url>
Home: https://github.com/Lyken17/pytorch-OpCounter

Package license: <pkg_license>
Package license: MIT

Summary: <pkg_summary>
Summary: Count the MACs / FLOPs of your PyTorch model.


Current release info
====================

| Name | Downloads | Version | Platforms |
| --- | --- | --- | --- |
| [![Conda Recipe](https://img.shields.io/badge/recipe-<pkg_name>-green.svg)](https://anaconda.org/anaconda/<pkg_name>) | [![Conda Downloads](https://img.shields.io/conda/dn/anaconda/<pkg_name>.svg)](https://anaconda.org/anaconda/<pkg_name>) | [![Conda Version](https://img.shields.io/conda/vn/anaconda/<pkg_name>.svg)](https://anaconda.org/anaconda/<pkg_name>) | [![Conda Platforms](https://img.shields.io/conda/pn/anaconda/<pkg_name>.svg)](https://anaconda.org/anaconda/<pkg_name>) |
| [![Conda Recipe](https://img.shields.io/badge/recipe-thop-green.svg)](https://anaconda.org/anaconda/thop) | [![Conda Downloads](https://img.shields.io/conda/dn/anaconda/thop.svg)](https://anaconda.org/anaconda/thop) | [![Conda Version](https://img.shields.io/conda/vn/anaconda/thop.svg)](https://anaconda.org/anaconda/thop) | [![Conda Platforms](https://img.shields.io/conda/pn/anaconda/thop.svg)](https://anaconda.org/anaconda/thop) |

Installing <pkg_name>
Installing thop
==================

Installing `<pkg_name>` from the main channel can be achieved by:
Installing `thop` from the main channel can be achieved by:

```
conda install <pkg_name>
conda install thop
```

It is possible to list all of the versions of `<pkg_name>` available on your platform with `conda`:
It is possible to list all of the versions of `thop` available on your platform with `conda`:

```
conda search <pkg_name>
conda search thop
```
2 changes: 2 additions & 0 deletions abs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
upload_channels:
- sfe1ed40
15 changes: 0 additions & 15 deletions pull_request_template.md

This file was deleted.

47 changes: 32 additions & 15 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,62 @@
{% set name = "<PLEASE ADD PKG NAME>" %}
{% set version = "<PLEASE ADD PKG VERSION>" %}
{% set name = "thop" %}
{% set version = "0.1.1.post2209072238" %}
{% set commit_id = "43c064afb71383501e41eaef9e8c8407265cf77f" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: <sha256>
- url: https://pypi.io/packages/py3/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}-py3-none-any.whl
lorepirri marked this conversation as resolved.
Show resolved Hide resolved
sha256: 01473c225231927d2ad718351f78ebf7cffe6af3bed464c4f1ba1ef0f7cdda27
# use github raw file for license file (not included in the wheel file)
- url: https://raw.githubusercontent.com/Lyken17/pytorch-OpCounter/{{ commit_id }}/LICENSE
sha256: 36f577ad288f1beae8188b6ec09808eaed278c08b8284bacc694bb56ffbf3dfc
# use github archive release for tests
- url: https://github.com/Lyken17/pytorch-OpCounter/archive/{{ commit_id }}.tar.gz
sha256: cbda9dc83ad9b78a9fbc8d89f8f1fb1da8ca284b39faab3e9ed697fb2bee909f
folder: gh_src

build:
number: 0
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
# install the wheel,because the sdist not available
script: {{ PYTHON }} -m pip install ./{{ name }}-{{ version }}-py3-none-any.whl -vv --no-deps --no-build-isolation
skip: True # [py<38]

requirements:
host:
- python
- pip
- setuptools
- wheel
run:
- python
- pytorch

test:
imports:
- {{ name.replace('-', '.') }}
- thop
requires:
- pip
- pytest
source_files:
- gh_src/tests
commands:
- pip check
- cd gh_src
- pytest tests

about:
home: <PLEASE ADD HOME URL>
summary: <PLEASE ADD SUMMARY>
home: https://github.com/Lyken17/pytorch-OpCounter
summary: Count the MACs / FLOPs of your PyTorch model.
description: |
<PLEASE ADD DESCRIPTION>
license: <PLEASE ADD LICENSE>
license_family: <PLEASE ADD LICENSE_FAMILY>
license_file: <PLEASE_ADD_LICENSE_FILE>
dev_url: <PLEASE ADD DEV URL>
doc_url: <PLEASE ADD DOC URL>
Count the MACs / FLOPs of your PyTorch model.
license: MIT
license_family: MIT
license_file: LICENSE
dev_url: https://github.com/Lyken17/pytorch-OpCounter
doc_url: https://github.com/Lyken17/pytorch-OpCounter

extra:
recipe-maintainers:
- Jrice1317
- lorepirri