enabled constant folding gives weird results

I exported the following model to onnx: https://github.com/marianne-m/brouhaha-vad
I used the following script:
from pyannote.audio import Model
import torch

model = Model.from_pretrained("pyannote/brouhaha", use_auth_token="<my hugging face access token>")

dummy_input = torch.rand((64, 1, 96000), dtype=torch.float32)

torch.onnx.export(
    model,
    dummy_input,
    "brouhaha.onnx",
    input_names=["input"],
    output_names=["output"],
    dynamic_axes={
        "input": {0: "B", 1: "C", 2: "T"},
    },
)

The inference of the resulting model works for me.
When I try to use onnxslim without --no_constant_folding I get the following result and a faulty model:
+-----------------------+----------------------------------+----------------------------------+
|      Model Name       |          brouhaha.onnx           |            Op Set: 17            |
+-----------------------+----------------------------------+----------------------------------+
|      Model Info       |          Original Model          |          Slimmed Model           |
+-----------------------+----------------------------------+----------------------------------+
|       IN: input       |     float32: ('B', 'C', 'T')     |     float32: ('B', 'C', 'T')     |
|      OUT: output      | float32: ('Reshapeoutput_dim_0', | float32: ('Reshapeoutput_dim_0', |
|                       |      'Reshapeoutput_dim_1',      |      'Reshapeoutput_dim_1',      |
|                       |      'Reshapeoutput_dim_2')      |      'Reshapeoutput_dim_2')      |
+-----------------------+----------------------------------+----------------------------------+
|          Abs          |                3                 |                1                 |
|          Add          |                10                |                7                 |
|         Cast          |                3                 |                0                 |
|         Clip          |                1                 |                0                 |
|        Concat         |                47                |                5                 |
|       Constant        |               317                |                0                 |
|    ConstantOfShape    |                1                 |                1                 |
|         Conv          |                4                 |                4                 |
|          Cos          |                2                 |                0                 |
|          Div          |                5                 |                0                 |
|         Equal         |                1                 |                1                 |
|        Gather         |                7                 |                4                 |
|          If           |                1                 |                1                 |
| InstanceNormalization |                4                 |                4                 |
|         LSTM          |                3                 |                3                 |
|       LeakyRelu       |                5                 |                5                 |
|        MatMul         |                7                 |                5                 |
|        MaxPool        |                3                 |                3                 |
|          Mul          |                8                 |                2                 |
|          Neg          |                1                 |                0                 |
|        Reshape        |                9                 |                6                 |
|         Shape         |                7                 |                4                 |
|        Sigmoid        |                3                 |                3                 |
|          Sin          |                2                 |                0                 |
|         Slice         |                83                |                6                 |
|        Squeeze        |                1                 |                1                 |
|          Sub          |                3                 |                0                 |
|       Transpose       |                12                |                7                 |
|       Unsqueeze       |                35                |                7                 |
+-----------------------+----------------------------------+----------------------------------+
|      Model Size       |             15.06 MB             |             91.66 KB             |
+-----------------------+----------------------------------+----------------------------------+
|     Elapsed Time      |                                0.45 s                               |
+-----------------------+----------------------------------+----------------------------------+

The resulting size of 91.66 KB is of course very strange. I guess all the weights got stripped away?

I will check this as soon as possible. Thanks for reporting this.

@TechInterMezzo bug solved, you can try pip install git+https://github.com/inisis/OnnxSlim@main, Thanks again, I will add more tests for models with subgraph.

That worked.
Thank you for your help and effort.


Typescript error with custom composable after switching to pnpm

Reporting a bug?
I have this composable that stores local messages:
import { type I18nScope, useI18n } from 'vue-i18n'

interface UseI18nSchema<T extends string = string> {
    message: Record<T, string | object>
}
type UseI18nLocale = (typeof localeOptions)[number]['id']

export const useTranslations = (props?: { scope?: I18nScope }) => {
  const { scope = 'global' } = props || {}

  const { t } = useI18n<UseI18nSchema, UseI18nLocale>({
    useScope: scope,
    messages: {
      en: {
        test: 'Test'
      },
      ru: {
        test: 'Тест'
      },
      uz: {
        test: 'Test'
      }
    }
  })

  return { t }
}

After I switched to pnpm, I started getting this error:
The inferred type of 'useTranslations' cannot be named without a reference to '.pnpm/@intlify+core-base@9.2.2/node_modules/@intlify/core-base'. This is likely not portable. A type annotation is necessary.ts(2742)

Can someone explain why? Is it because I switched to pnpm or is there a problem with vue-i18n library itself?
Expected behavior
I expect not to have this error
Reproduction
https://github.com/Sardor01/vue-i18n-reproduction
System Info
System:
    OS: Linux 6.0 Pop!_OS 22.04 LTS
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 3.34 GB / 11.56 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.13.0/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm
    pnpm: 7.26.3 - ~/.nvm/versions/node/v18.13.0/bin/pnpm
  Browsers:
    Chrome: 109.0.5414.119
    Firefox: 109.0
  npmPackages:
    @intlify/unplugin-vue-i18n: ^0.8.1 => 0.8.1
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0
    @vue/eslint-config-prettier: ^7.0.0 => 7.0.0
    @vue/eslint-config-typescript: ^11.0.2 => 11.0.2
    @vue/test-utils: ^2.2.8 => 2.2.8
    @vue/tsconfig: ^0.1.3 => 0.1.3
    vite: ^4.0.4 => 4.0.4
    vitest: ^0.28.3 => 0.28.3
    vue: ^3.2.45 => 3.2.45
    vue-i18n: ^9.2.2 => 9.2.2
    vue-router: ^4.1.6 => 4.1.6
    vue-tsc: ^1.0.8 => 1.0.24
    vue3-apexcharts: ^1.4.1 => 1.4.1

Screenshot
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines
[X] Read the Documentation
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussions

Sadly i have the same problem when running TS with --noEmit flag 🥲


Setup Visual Studio

Hi there,
I am running the preconfigured examples with Visual Studio 2017 and the compiler says the following: "raylib.h": No such file or directory
I have also tried the step for step instruction (https://github.com/raysan5/raylib/wiki/Create-Visual-Studio-Project) but have no clue where raylib.lib is located or how I could create it.
Thanks for any help.
Anna

Are you using latest raylib from github? or are you using the installer version?

Thanks for your quick reply.
I am using the installer version (cf. edited issue).

You should try with latest raylib from GitHub, the one you're using is almost one year old.
Closing the issue in the meantime.

@FFXV check out this : VS raylib tutorial


Extracting values from TEI docs

Hi Raff! Thank you again for bringing TEI to the Gatsby world!
I was wondering about how one could extract values from a TEI doc to use in components. Let's say I have a SEO component and I want to use it together with my main Ceteicean.js component like this:
const MyCeteicean = ({pageContext}) => {

  const routes = {
    "tei-tei": Tei,
    "tei-teiheader": TeiHeader,
    "tei-note": Note,
    "tei-placename": PlaceName,
    "tei-pb": (props) => <Pb {...props}/>,
  }

  return (
    <>
      <Layout>
        <Ceteicean pageContext={pageContext} routes={routes} />
      </Layout>
      <Seo title="xxx"></Seo>
    </>
  )

}

export default MyCeteicean

How could I extract the title from /TEI/teiHeader/fileDesc/titleStmt/title[@type='main'] in order to use it in my SEO component?
Many thanks in advance!

Hi @ttasovac, you'll have to get access to the TEI DOM somehow. I can think of three possible approaches.
1. Handle <Seo> in the Tei component.
The <TEI> element is passed through the props, so you can look up the title from there. TEI is fairly top level so you may still be able to make <Seo> work, but it depends on your implementation.
const Tei = (props) => {
  const el = props.teiNode as Element
  const title = el.querySelector("tei-teiHeader > tei-fileDesc > tei-titleStmt > tei-title[type='main']").textContent

  return (
      <>
        <Seo title={title} />
        <SafeUnchangedNode {...props} />
      </>
     )
}

If you need the default behavior of the Tei component provided in gatsby-theme-ceteicean (which deals with footnotes, for example), you may have to re-implement it, or wrap it somehow.
Pros: relies on the DOM already exposed by the routing of TEI elements to React components.
Cons: creates additional client-side traversing; may not work for all Seo configurations.
2. Retrieve the title (and other useful metadata) in gatsby-node.js and pass it to the pageContext
Since this code runs on node rather than the browser, you'll have to provide your own DOM library. I recommend xmldom or jsdom (I prefer the latter because it supports query selectors, but it has a bit more overhead).
exports.createPages = async ({ actions, graphql, reporter }) => {
  const { createPage } = actions
  await makeTeiPages(createPage, reporter, graphql)
}

async function makeTeiPages(createPage, reporter, graphql) {
  const component = require.resolve(`./src/gatsby-theme-ceteicean/components/Ceteicean.jsx`)

  const result = await graphql(`
    query {
      allCetei {
        nodes {
          prefixed
          elements
          parent {
            ... on File {
              name
            }
          }
        }
      }
    }
  `)
  if (result.errors) {
    reporter.panicOnBuild(`Error while running GraphQL query.`)
    return
  }

  for (const node of result.data.allCetei.nodes) {
    const name = node.parent.name

   // parse the document, e.g. with jsdom
    const jdom = new JSDOM(node.prefixed, {contentType: 'text/xml'})
    const doc = jdom.window.document

   // grab all the metadata you need
    const title = doc.querySelector("tei-fileDesc > tei-titleStmt > tei-title[type='main']").textContent

    createPage({
      path: name,
      component,
      context: {
        name,
        title,
        prefixed: node.prefixed,
        elements: node.elements
      }
    })
  }
}

Pros: DOM traversing happens only at build time, avoiding it on the client.
Cons: may introduce the need for a new dependency (though gatsby-theme-ceteicean already installs xmldom); may slow down build times if there are many TEI files
3. Use regex at your own risk
pageContext contains the raw CETEIcean data in pageContext.prefixed. You could look for the string that you need in there....
pageContext.prefixed.match(/type="main">(.*?)<\/tei-title/)

pros: no DOM needed; can be performed in Ceteicean.tsx.
cons: risky! not always applicable.
You could also parse pageContext.prefixed with the browser's DOMParser, but I really don't recommend it.

Thanks a lot for the detailed write-up @raffazizzi!
I've decided to go for option 2. I have tested it with both xmldom and jsdom, but ultimately settled on libxmljs.
I don't have the time to do any actual benchmarking, but libxmljs should be faster than jsdom (because it's not a pure JS implementation, it only provides bindings for libxml2, which is written in C) + it makes my XPath fanatic's heart sing with joy that I can do something like this:
const doc = libxmljs.parseXml(node.prefixed)
const title = doc.get('//tei-titleStmt/tei-title[@type="main"]')

Happy times! 🤓


Is this functional?

Hi, sorry!
I found this library and sounds great, I made son POC not successful, I couldn't get bind the handler with the query, also, every try just was able to retrieve ContianerInstance by @Inject() just in the first Agument in the handler
Regards!

@iaejean The library should work.  It is currently being used in a few private projects.  If you can provide a demo repo, I will be happy to review it.

@iaejean  quick update on this, I was able to reproduce a few errors.  The next release should fix some errors, not sure if it is the exact error that you are getting.


JS game logic - How best to document for modding?

With the recent advent of JS-based game logic (thanks @Zomis !) I began thinking about how best to document now, and later, for eventual modders to effectively use. I had a few initial thoughts of options:

Write a modder's guide on the website;
Write a modder's guide in the repo (like a .md file);
Write a modder's guide on the Github wiki;
Write a modder's guide mostly as code documentation (e.g., JSDoc);
Combination thereof.

I'll be happy to write the documentation as we go along, one way or the other, but I just need to make sure we agree on the best method. I like that the first 3 allow for formatting, and especially on the website where we can use BootStrap elements to our advantage. It's a bit more work, and a few other strings attached, but I think it would be best UX.
On the other hand, while I think we absolutely should at least use JSDoc in the code,  having the modding guide there would have the advantage of keeping everything in one place, so the whole project is self-documenting. Albeit, that may hinder the readability of the code to an extent by adding a lot of "noise" in the source files, and perhaps not be very intuitive to the potential modder.

Definitely use JSDoc and be very thorough when documenting the API, but it's not exactly the place for a "Guide". I would recommend running the JSDoc through a tool to get it in HTML format to produce something like I did for our Source Control API. I did it by hand, because I needed markdown, but I'm sure there are tools out there.
The guide itself could be in the form of a detailed tutorial or as simple as an example usage.

@ckuhn203 great advice, thanks for chiming in!

I have documented how the cards are customized, for the most part. What other aspects of the game logic can be changed via the JavaScript implementation, @Zomis ?

I think the latest commits provide "good enough" documentation for the time being, although new documentations should be written as new things are implemented.


Trying to get Realm to work with Xcode 9 Beta 1

Goals
I'm trying to get Realm ( v2.8.0) to work with Xcode 9 Beta 1. I've tried using Cocoapods and building Realm myself using the sh build.sh build but both solutions lead me to the error:

./scripts/swift-version.sh: line 59: [: =: unary operator expected

Expected Results
Realm to should work with Xcode 9 Beta 1
Actual Results
The current version of Realm does not work with Xcode 9 Beta 1
Steps to Reproduce
###Building manually:

Tried downloading the most recent version of Realm from the master branch and build it with sh build.sh build. (I'm aware that the prerequisites require me to have Xcode 8.x to build, I'm looking for a way to get Realm to work with Xcode 9 itself)

###Cocoapods:

Create a new project
Try installing Realm with the default instructions of a pod install

Code Sample

Version of Realm and Tooling

Realm framework version: v2.8.0 ( Manually building: Latest commit 217fb6d)
Realm Object Server version: -
Xcode version: v9.0 (Beta 1)
iOS/OSX version: macOS v10.12.5 (16F73)
Dependency manager + version: cocoapods-1.2.1

Can you please share the output of which sh?

mayur (master *+) realm-cocoa-master $ which sh
/bin/sh

I was able to install no problem through cocoa pods:
pod 'Realm', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master', submodules: true
  pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'master', submodules: true

However i did notice the compiler segfault: https://github.com/realm/realm-cocoa/issues/5019 when useing LinkedObjects but this is a bug in the swift compiler it should not be possible to make the compiler crash.

@hishnash Thanks for your response. I got Realm to work with a basic test app.
Also, combined with the post_install do |installer| snippet and the recent Realm 2.8.1 release, I successfully got Realm working with one of my projects.
(Another project still won't work but this issue is resolved.)

I am using Carthage and still need assistance getting Realm Swift 2.8.1 to work in my Xcode 9 project.


update recipe to v0.3.1

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@hmacdope how does this look?

@conda-forge-admin, please rerender

@orionarcher honestly no idea, the PyPi install works fine for me and re-render says no work to do.  Status also says python infra is up (https://status.python.org/).
You also seem to have got the hashes right.  I'll ping the cf team, I could be missing something obvious.
@

@conda-forge/help-python would you be able to provide us some guidance on this failing download in the azure CI.

Thanks for taking a swing at this, the error messages mean pretty much nothing to me. Hopefully the conda-forge folks can advise.

It's back on us now, versioneeer is misbehaving

I'll have another crack today

If i'm correct @orionarcher the issue is now that
- pathlib
- pytest
- rdkit

are not being installed as part of the pip install.
You will need to fix pyproject.toml and cut a new patch release.

Got it, thanks for the help!
I'm looking at pyproject.toml and it already includes pathlib, pytest, and rdkit. These are all available on PyPI and conda-forge.
The only place they are missing is in the meta.yml in the main repo. If I update that could it fix the issue? Happy to, but don't want to mint an extra version unecessarily.


RenameSuggestion

Renaming Suggestion of Method Names to Make Them More Descriptive

Description
We have developed a tool (NameSpotter) for identifying non-descriptive method names, and using this tool we find a non-descriptive method name in your repository:
/* Non-descriptive Method Name in src/main/java/eu/koboo/en2do/repository/methods/pagination/Pagination.java*/
    public @NotNull Pagination page(long page) {
        this.page = page;
        return this;
    }

We consider "page" as non-descriptive because it only contains a noun, and we cannot guess the action (e.g., get, set, load) of this method without looking into the method body.
We propose to rename this method to "setPage" because this method is to set the field "page" with the parameter "page" and returns the "Pagination" object (it is more like a setter method).
Do you agree with the judgment?

If not, could you please leave your valuable opinion?

If you do agree, the relevant modification has been submitted as a PR, and thanks for your precious time to consider it.

Hey, thank you for the contribution!
It's really helpful, but I can't accept that PR, because I'm refactoring en2do to version 3.0.0 right now, so that would just conflict when merged, but I will add it to new version! :)
BR Koboo

Thanks and have a nice day!


refactor dashboard code,add token dispatch,fixed issues of previous scrum - [closed]

In GitLab by @liyanq528 on Aug 15, 2017, 07:28
Merges 20170814 -> dev

In GitLab by @wknet123 on Nov 13, 2019, 09:53
closed


Crash when accessing flash while using RMT and -Os compiler flag (IDFGH-7974)

Module or chip used: ESP32 rev0 on TTGO
IDF version: 4.4.1
Build System: Standard VSCode installation (Windows) as per the tutorial
Power Supply: USB

Problem Description
When compiled with -Os, using RMT and accessing the flash at the same time results in a crash (Cache disabled but cached memory region accessed).
The problem is in
https://github.com/espressif/esp-idf/blob/release/v4.4/components/hal/esp32/include/hal/rmt_ll.h
The functions there are not really "inline" when compiled with -Os. Thus they end up in flash unreachable during flash operations.
Solution: Use __attribute__((always_inline)) (I think you defined it FORCE_INLINE_ATTR).
I've seen in uart_ll.h the low level functions are inlined properly. But e.g. in i2c_ll.h they are not either! I haven't tried anything with I2C or looked into all the other ll files yet, but maybe other peripherals suffer from a similar bug. Whoever fixes rmt_ll.h should check the other components, too.
Code to reproduce this issue
#include <string.h>
#include "driver/rmt.h"
#include "nvs_flash.h"

void app_main(void) {
	rmt_config_t tx = {
		.channel = RMT_CHANNEL_0,
		.gpio_num = 20,
		.mem_block_num = 1,
		.clk_div = 40,
		.tx_config.idle_output_en = true,
		.rmt_mode = RMT_MODE_TX,
	};
	rmt_config(&tx);
	rmt_set_source_clk(tx.channel, RMT_BASECLK_APB);
	rmt_driver_install(tx.channel, 0, ESP_INTR_FLAG_IRAM);

	rmt_item32_t items[512] = {};
	for (int i = 0; i < 512; i++) {
		items[i].duration0 = 1;
		items[i].level0 = 0;
		items[i].duration1 = 1;
		items[i].level1 = 1;
	}
	rmt_write_items(RMT_CHANNEL_0, items, 512, false);

	while (true) {
		uint32_t crashme;
		esp_flash_read(NULL, (void *)&crashme, 0, sizeof(crashme));
	}
}

Debug Logs
Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed).

Core  0 register dump:
PC      : 0x400e41b0  PS      : 0x00060034  A0      : 0x40082578  A1      : 0x3ffb0b60
0x400e41b0: rmt_ll_get_tx_err_interrupt_status at C:/Users/***/esp/esp-idf/components/hal/esp32/include/hal/rmt_ll.h:307

0x40082578: _xt_lowint1 at C:/Users/***/esp/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1111

A2      : 0x3ffb1298  A3      : 0x00000000  A4      : 0x00000080  A5      : 0x00000001
A6      : 0x00000001  A7      : 0x00000020  A8      : 0x80082d2a  A9      : 0x00000020
A10     : 0x3ff56000  A11     : 0x3ffb55f0  A12     : 0xffffffff  A13     : 0x00000000
A14     : 0x3ffb12a4  A15     : 0x00000000  SAR     : 0x00000008  EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000  LBEG    : 0x40082079  LEND    : 0x40082081  LCOUNT  : 0x00000027
0x40082079: esp_timer_impl_get_counter_reg at C:/Users/***/esp/esp-idf/components/esp_timer/src/esp_timer_impl_lac.c:118 (discriminator 2)

0x40082081: esp_timer_impl_get_counter_reg at C:/Users/***/esp/esp-idf/components/esp_timer/src/esp_timer_impl_lac.c:128 (discriminator 1)

Backtrace:0x400e41ad:0x3ffb0b600x40082575:0x3ffb0ba0 0x4008a059:0x3ffb4eb0 0x400840ca:0x3ffb4f30 0x400d4245:0x3ffb4f70 0x400e4874:0x3ffb57c0
0x400e41ad: esp_efuse_utility_get_number_of_items at C:/Users/***/esp/esp-idf/components/efuse/src/esp_efuse_utility.c:241

0x40082575: _xt_lowint1 at C:/Users/***/esp/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1111

0x4008a059: spi_flash_chip_generic_detect_size at C:/Users/***/esp/esp-idf/components/spi_flash/spi_flash_chip_generic.c:119

0x400840ca: esp_flash_read at C:/Users/***/esp/esp-idf/components/spi_flash/esp_flash_api.c:832

0x400d4245: app_main at C:\Users\***\esp\rmt_inline_crash\build/../main/main.c:29 (discriminator 1)

0x400e4874: main_task at C:/Users/***/esp/esp-idf/components/freertos/port/port_common.c:129

Thanks for reporting, we can reproduce the issue with your code. Will fix it ASAP.
BTW, calling RMT functions while the flash cache is disabled is not guaranteed to be safe, as these public APIs are not placed in IRAM.

How certain are you that the issue is really fixed?
In IDF 4.4.4 I still get a

Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed).

0x40163211: rmt_ll_enable_tx_err_interrupt at esp-idf/components/hal/esp32/include/hal/rmt_ll.h:252
0x400825f1: shared_intr_isr at esp-idf/components/esp_hw_support/intr_alloc.c:407
0x40082ff5: _xt_lowint1 at esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1114
0x4000c050: ?? ??:0
0x40008544: ?? ??:0
0x40086d35: delay_us at esp-idf/components/spi_flash/spi_flash_os_func_app.c:148
0x4009b932: spi_flash_chip_generic_wait_idle at esp-idf/components/spi_flash/spi_flash_chip_generic.c:455
0x4009b841: spi_flash_chip_generic_page_program at esp-idf/components/spi_flash/spi_flash_chip_generic.c:253
0x4009b34e: spi_flash_chip_generic_write at esp-idf/components/spi_flash/spi_flash_chip_generic.c:278
0x40086c40: esp_flash_write at esp-idf/components/spi_flash/esp_flash_api.c:907
0x400f41d1: esp_partition_write at esp-idf/components/spi_flash/partition.c:466
0x400f306d: esp_ota_write at esp-idf/components/app_update/esp_ota_ops.c:240

rmt_ll_enable_tx_err_interrupt is called rmt_driver_install which is not expected to run in ISR. Another place can be rmt_set_err_intr_en  Maybe you're calling rmt_set_err_intr_en in the ISR callback?

That is strange. I do not use rmt_ll_enable_tx_err_interrupt at all. rmt_driver_install is only called at start and rmt_driver_uninstall is not used at all.
I suspect that -Os makes the dump unreliable and it's in fact another function like rmt_ll_get_tx_end_interrupt_status, rmt_ll_clear_tx_end_interrupt, etc. which are called from the isr and not properly inlined.

rmt_ll_enable_tx_err_interrupt and
rmt_ll_enable_rx_err_interrupt
are basically the same function. Could it be that the compiler combines them (uses only one of them)? -Os does crazy things. But also rmt_ll_enable_rx_err_interrupt is used only in rmt_set_err_intr_en, rmt_driver_uninstall and rmt_driver_install (via rmt_hal_rx_channel_reset)...
Anyway, if I inline rmt_ll_enable_tx_err_interrupt using attribute((always_inline)) the crash seems to go away...

...but a new crash appears:
0x401631e9: rmt_ll_enable_rx_end_interrupt at esp-idf/components/hal/esp32/include/hal/rmt_ll.h:246
0x40082ff5: _xt_lowint1 at esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1114
0x40008544: ?? ??:0
0x40086d35: delay_us at esp-idf/components/spi_flash/spi_flash_os_func_app.c:148
0x4009b932: spi_flash_chip_generic_wait_idle at esp-idf/components/spi_flash/spi_flash_chip_generic.c:455
0x4009b841: spi_flash_chip_generic_page_program at esp-idf/components/spi_flash/spi_flash_chip_generic.c:253
0x4009b34e: spi_flash_chip_generic_write at esp-idf/components/spi_flash/spi_flash_chip_generic.c:278
0x40086c40: esp_flash_write at esp-idf/components/spi_flash/esp_flash_api.c:907
0x400f41e1: esp_partition_write at esp-idf/components/spi_flash/partition.c:466
0x400f307d: esp_ota_write at esp-idf/components/app_update/esp_ota_ops.c:240

I did what I did back in August with version 4.4.1: I properly inlined all functions in
https://github.com/espressif/esp-idf/blob/release/v4.4/components/hal/esp32/include/hal/rmt_ll.h
Now I'm monitoring if the problem is gone again.

No problems so far after inlining.
What were the changes you made to the 4.4 branch?
Looking at the history of these files makes me think the fix might somehow gotten lost.
https://github.com/espressif/esp-idf/commits/release/v4.4/components/hal/esp32/include/hal/rmt_ll.h
https://github.com/espressif/esp-idf/commits/release/v4.4/components/driver/rmt.c

I'm encountering a similar problem (slightly different trace) in version 4.4.2 and 4.4.4. I'm calling rmt_driver_install with the ESP_INTR_FLAG_IRAM flag.
Using attribute((always_inline)) on rmt_ll_get_tx_err_interrupt_status seems to help me.
But when looking into the driver I noticed that it looks like the tx_buf is allocated in the wrong way in rmt_translator_init().
 if (p_rmt_obj[channel]->intr_alloc_flags & ESP_INTR_FLAG_IRAM) {             p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)malloc(block_size);         } else {             p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)heap_caps_calloc(1, block_size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);         }
should it not be the other way around?
 if (!(p_rmt_obj[channel]->intr_alloc_flags & ESP_INTR_FLAG_IRAM)) {             p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)malloc(block_size);         } else {             p_rmt_obj[channel]->tx_buf = (rmt_item32_t *)heap_caps_calloc(1, block_size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);         }
I don't know if this solves any issues yet, but it does not look correct to me.

@emmpe Thanks for reporting, yeah, it's an issue, we will fix it ASAP and backport to release/4.4
@kriegste You're correct, the fix is not backported to 4.4 release yet (it should exist since 5.0). We will backport this fix to release/4.4 soon.


[Serving][Benchmark] Add benchmark code for serving

closes #68

Currently prompts are sampled from ShareGPT, I am thinking adding more prompt workloads.

Added support for ipex prompt.json dataset, will continue to add first/next token latencies from client side.

replaced with #163 and already merged.


feat(deps): upgrade compiler dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-compiler-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1435

Questions ?
Please refer to the Backport tool documentation


Pulling in story-00-matthewp on 8/6/15.

This pull request is now managed with CodeReviewHub. Refresh.


Remove Column and Row properties from Form

In nb183 it was possible to select the the Screen and multiple other components, and when dragging one of the selected components into a TableArrangement have all of the selected components gain the dragged component's Column and Row properties. This is problematic for Screen because even though it is a visible component, it doesn't inherit from VisibleComponent (which defines the row/column properties), therefore YAIL generated from this Screen would fail to compile due to the use of undefined properties. This commit removes these properties from the MockForm when it loads in order to correct for this behavior. I have not been able to replicate the issue on nb183a and later, and I believe that it was fixed by #2132.
Change-Id: I986ce001d40ff7ea4423e7a21d29e3fad3e2eabc

Original discussion on the community site: https://community.appinventor.mit.edu/t/newbie-here-need-a-little-help-invoke-no-method-named-column-in-class-edu-mit-appinventor/6301?u=ewpatton


luet-cosign has no LICENSE

even when the files have a license header, there is no LICENSE file which Im guessing is needed for something in obs

License added on version 0.0.11


Resource pages on mobile

Description
Adopt structure and CSS classes from the API pages for the nav pane and root content of the Resources pages
Why
Resolves https://github.com/microsoft/react-native-windows-samples/issues/147
Screenshots
Add any relevant screen captures here from before or after your changes.
Small-width (collapses)

Before
After

Large-width (expanded)
Before

After

Microsoft Reviewers: Open in CodeFlow

You'll note in the wide screenshots the left alignment of the nav bar is off. Seems to be a difference between this rule triggering on the APIs page but not for the Resources page:
.separateOnPageNav .wrapper, .separateOnPageNav .headerWrapper.wrapper {
  max-width: 1400px;
}

The resources page don't have separateOnPageNav set on their <body>. I could add a style somewhere to get the same behavior.


CUDA ARCH BIN 5.0 FAILURE

Dear All,
The bin is incompatible with graphic card version 5.0.
General problem :
The problem is in CUDA_ARCH_BIN because no support 5.0 version and only proposed 3.0 3.5 version for Kepler generation, and PTX don't create.
The program don't function in CUDA but is function in openCL.
Because the graphic card don't accept the cubin different of 5.0
The problem is worse with Auto detect generation because the program don't compile and the error is : nvcc : architecture is not compatible.
Description problem:
In set Kepler config.
I modify in CMake 5.0 in CUDA_ARCH_BIN and after config the value in CUDA_ARCH_BIN is automatically reset to 3.0 3.5 and the PTX is reset in never.
For forced CMake I have modify  CMakeCache.txt in the build folder
I test this :
//Specify 'real' GPU architectures to build binaries for, BIN(PTX)
// format is supported
CUDA_ARCH_BIN:STRING=3.0 3.5 5.0
//Specify 'virtual' PTX architectures to build PTX intermediate
// code for
CUDA_ARCH_PTX:STRING=
//Attach the build rule to the CUDA source file.  Enable only when
// the CUDA source file is added to at most one target.
CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON
//Generate and parse .cubin files in Device mode.
CUDA_BUILD_CUBIN:BOOL=OFF
The result is same
After I test this :
//Specify 'real' GPU architectures to build binaries for, BIN(PTX)
// format is supported
CUDA_ARCH_BIN:STRING=3.0 3.5 5.0
//Specify 'virtual' PTX architectures to build PTX intermediate
// code for
CUDA_ARCH_PTX:STRING= 5.0
//Attach the build rule to the CUDA source file.  Enable only when
// the CUDA source file is added to at most one target.
CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON
//Generate and parse .cubin files in Device mode.
CUDA_BUILD_CUBIN:BOOL=ON
The result is same
I resolve the problem with no-compliance method but the program good run
I modify in OpenCVDetectCUDA.cmake in the source/cmake folder
This is my modification :
set(__cuda_arch_ptx "")
if(CUDA_GENERATION STREQUAL "Fermi")
set(__cuda_arch_bin "2.0 2.1(2.0)")
elseif(CUDA_GENERATION STREQUAL "Kepler")
if(${CUDA_VERSION} VERSION_LESS "5.0")
set(__cuda_arch_bin "3.0")
else()
set(__cuda_arch_bin "3.0 3.5 5.0")
endif()
elseif(CUDA_GENERATION STREQUAL "Auto")
execute_process( COMMAND "${CUDA_NVCC_EXECUTABLE}" "${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu" "--run"
My software config :
Cuda toolkit v7.0
OpenCV v2.4.10
CMake v3.2.0
My hardware config :
GPU name: NVIDIA Quadro K2200
GPU version: 5.0
GPU multiProc: 5
I expect my message help you for a correct modification.
If please let us know if you need anything else.
best regards
Kevin GARDETTE

You can manually specify the CUDA_ARCH_BIN option in CMake command line:
cmake -DCUDA_ARCH_BIN=5.0 <path to opencv>

Thank you for your reply and take time for the answer to my problem.
I apologize for my late response.
I run the command line and the result is there:

Detected CUDA 7.0
CUDA NVCC targets flags: -gencode ; arch = compute_30 , code = sm_30 ; -gencode ; arch = com
pute_35 , code = sm_35

It the same result as my amendment to the CMakeCache.txt
failure is CMakeCache.txt :
// Format is supported
CUDA_ARCH_BIN : String = 3.0 3.5
I expect my message help you for a correct modification.
If please let us know if you need anything else.
best regards

Did you set CUDA_GENERATION? Try to unset it:
cmake -DCUDA_GENERATION="" -DCUDA_ARCH_BIN=5.0

Thank you for your reply more quickly
And for more accuracy
It seems that the line:
set(__cuda_arch_bin "3.0 3.5")
in cmake/OpenCVDetectCUDA.cmake sets CUDA_ARCH_BIN back to "3.0 3.5"
whatever we specifiy with -DARCH_CUDA_BIN
It solved the problem temporarily by modifying this line to:
set(__cuda_arch_bin "3.0 3.5 5.0")
And I try your operation tomorrow
Thank you

Thank you for the support and the time pass
In efect, I try Keppler and Auto in  CUDA_GENERATION= and I had the problem in my first post .
And the problem is solved with this jet47 with the last Post :
-DCUDA_GENERATION cmake = "" = 5.0 -DCUDA_ARCH_BIN


ping --handshake-only

Changelog
- description: |
    unixsoc depend on handshake-only
# uncomment types applicable to the change:
  type:
  - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
issue
previous PR
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated. See Running tests for more details
[ ] Self-reviewed the diff

Since this is not a priority, I'm letting the stale bot do its thing. This PR (and the previous one) will still be there if we want to revisit.


[HIVEMALL-208] Upgrade to Lucene 5.5.5

What changes were proposed in this pull request?
tokenize_ja failed to analyze certain Japanese strings
This cause is LUCENE-7279 which has already fixed. Lucene need to be upgraded.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-208
How was this patch tested?
unit tests
Checklist

[x] Did you apply source code formatter, i.e., ./bin/format_code.sh, for your commit?

@iijima-satoshi
Thank you for the contribution. Will merge testing.
@takuti
You need to update Lucene version to 5.5.5 in tokenize_ja_kuromoji.
https://github.com/takuti/hive-udf-neologd/blob/master/pom.xml#L16

@iijima-satoshi LGTM. Merged. Thank you for your contribution!


documentation contrasting our semantics against the existing ones of popular tools

Eclipse, intelliJ, nullaway, etc. etc.
This could also have notes on any plans those tools might have to adjust their behavior.
I think Chris might have notes somewhere we could spruce up for this?

dup of #123


With Joe Ben and IT, Sign up for the service where we can build the Azure container instance

@joebenclark yes this is what I had in mind.  We may need to persist the report after the container spins down so we may also need Azure Files mounted to the container.  https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files  I have not looked into whether we can get the report after the run before the container spins down, in which case this may not be necessary.

@joebenclark  I met with @gerrycampion yesterday and discussed the test suite.  We agreed on an architecture that would only need git actions so we may not need to provision any azure resources for this.  I will keep this ticket up in case we reach a block with git actions implementation but using only git actions would have the benefit of not just simplicity but also cost savings.

We went with gh actions


Ascending/Descending icons don't appear in all tables

See, e.g., the right-side table in Assignments -> Manage Graders. The columns seem to be sortable, but the up/down triangles don't appear.

@arkon is correct; this is another table which has not been coverted to React.


Implement Alphabet Triangle Pattern in JavaScript

Why:
Closes #642
What's being changed:
Added a file implementing the alphabet triangle pattern in JavaScript.
Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Hey @rutterjt
Thanks for your contributions to this project 👍🏻
This PR will be reviewed and merged shortly


How can i store state of model?

I have hourly electricity consumption data for each building and I want to forecast the next 7 days (hourly) every Monday. When I feed data to the model each Monday, the model should retain past data or parameters so that it improves in accuracy over time.
I mean model should remember past data or parameters to improve accuracy iteratively.
how can i achieve it?

@ashok-arjun

Can you save the model with pytorch?

predictor = estimator.train(dataset.train, cache_data=True, shuffle_buffer_length=1000)
model_path = "my_model.ckpt"
torch.save(predictor, model_path)
i tried something like this but not working

@AvinashUtekar so typically what one does is to feed updated context to the model, i.e. next week, feed the ground-truth of the past week etc. and this way one can get the forecast based on the most recent ground-truth...


feat: move library to typescript code generation

Overall, this looks good to me! Please regen with the latest image, remove the extra ./install.ts, I'll have one more quick look and we'll be good to go here.

Please have a final look, then I will merge it, thanks for the review Alex!


Write test function

Please look into the code: https://github.com/lucasthierry17/Ant_Project/blob/nick/dummy_files/main.py
Write test functions for the function we currently have.

For now closed, when we have new functions or modified them the issue will reopen

Reopened, because we need new test functions
Goal is to cover around 70% of the code with test functions or the most we can.

You can view the test function here: https://github.com/lucasthierry17/Ant_Project/tree/main/tests


Spyder hard crash when trying to "import" this SBML model

When I try to import the attached model (change extension to xml), from the import menu spyder has a hard crash with this report:
heartmodel.txt
File "C:\Tellurium-Winpython\python-2.7.13.amd64\lib\site-packages\spyder_opensbml\opensbml.py", line 160, in run_opensbml
finfo, newname = self.load_and_translate(filename, pythonfile, editor)
File "C:\Tellurium-Winpython\python-2.7.13.amd64\lib\site-packages\spyder_opensbml\opensbml.py", line 190, in load_and_translate
text = "import tellurium as te\n\nr = te.loada('''\n" + str(te.sbmlToAntimony(sbmlstr)) + "''')"
File "C:\Tellurium-Winpython\python-2.7.13.amd64\lib\site-packages\tellurium\tellurium.py", line 630, in sbmlToAntimony
_checkAntimonyReturnCode(code)
File "C:\Tellurium-Winpython\python-2.7.13.amd64\lib\site-packages\tellurium\tellurium.py", line 288, in _checkAntimonyReturnCode
raise Exception('Antimony: {}'.format(antimony.getLastError()))
Exception:

PS The reason it crashes is because the SBML was invalid, but it should crash but report the problem instead.

This is an issue with opensbml plugin, which is already filed here. I will prioritize fixing this issue before the release of new version.

Fixed by https://github.com/sys-bio/spyder-opensbml/commit/df39ab1bceb4ae41acb5e967e1233dbbf585e8f2


neovim fails to enable syntax highlighting as non-root user

Issue description
If you try to enable syntax highlighting (syntax on) in neovim as a non-root user, it fails with the following error message:
Error detected while processing "/nix/store/xq1gr3ja50cy5mss95515vxv5srb50fg-neovim-0.1.3/share/nvim/runtime/syntax/syntax.vim":
line   42:
E216: No such group or event: filetypedetect BufRead

Steps to reproduce
Execute :syntax on as non-root user in neovim.
Technical details

System: 16.09.git.0b7e6deM (Flounder)
Nix version: nix-env (Nix) 1.11.2
Nixpkgs version: "16.09.git.0b7e6deM"

I don't know which version that is. I tried removing the "M", but still git doesn't recognize that commit.
I tried it on latest master branch (8d1fec55f68ffb20a4f1cf96cf444160236542db):
$ nix-build -A neovim && ./result/bin/nvim README.md   # open nixpkgs README file

Then I type :syntax on. I see syntax highlight appear, but no error message.
(Btw, my neovim is unconfigured, I have nothing in ~/.config/nvim.)

All this, as my own user (non-root).

I see the same thing on nixos. The culprit seems to be a very long XDG_DATA_DIRS environmental variable.
If XDG_DATA_DIRS is longer than 2955 characters on my system, I get the error above. Otherwise, I get syntax highlighting.

Yeah, I also realized that this has something to do with length as the bug only occurs when I run neovim in a GNOME session. On my system, the maximum length of XDG_DATA_DIRS is 3433 chars though.
Since setting a arbitrary long runtimepath in the init.vim does not exhibit the same problem, the bug is probably somehow related to parsingXDG_DATA_DIRS. I guess we have to open an issue at upstream.

Upstream has acknowledged that this is a neovim issue. I recommend closing here.

@luispedro that issue seems to have been closed, without this problem having been fixed.

It seems that at least some fixes were merged into the upstream neovim. The problem seems to be gone on nixos as well, although my XDG_DATA_DIRS is now very short (perhaps there was some reorganization of how that's handled as well).

(triage) Seems to me like we can close this. Please drop a comment if you still get that error message.


Global rate limiting for all, multiple routes instead of every route

Expected Behavior / New Feature
Add rate limit options for all requests in common
{
  "Routes": [],
  "RateLimitOptions": [
    {
      "RouteKeys": [ "posts", "users" ],
      "ClientWhitelist": [],
      "EnableRateLimiting": true,
      "Period": "10s",
      "PeriodTimespan": 3,
      "Limit": 1
    }
  ]
}

Actual Behavior / Motivation for New Feature
We add rate-limiting options for every route :
For e.g:
{
  "DownstreamPathTemplate": "/users",
  "DownstreamScheme": "https",
  "DownstreamHostAndPorts": [
    {
      "Host": "jsonplaceholder.typicode.com",
      "Port": 443
    }
  ],
  "UpstreamPathTemplate": "/users",
  "UpstreamHttpMethod": [ "Get" ],
  "RateLimitOptions": {
    "ClientWhitelist": [],
    "EnableRateLimiting": true,
    "Period": "10s",
    "PeriodTimespan": 3,
    "Limit": 1
  }
}

Any progress on this issue please let me know i am kind of waiting to apply ratelimiting time globally.

Related issues

#1915
#585

@neetra Hi Netra!
Are you with Ocelot nowadays?

Dear @neetra,
Did you read this :point_right: Global Configuration :question:

Global Rate Limiting configuration is already implemented!

Rate Limiting | Global Configuration

You have the right to reopen this issue in the future if you come with a PR ready

Reopening is due to significant interest from the community...

Hi.
is issue still open to contribute?
Is the expected feature to make the rate limit definitions in the global configuration by grouping the routes?

@orkunseyman Hello, Orkun!

is issue still open to contribute?

Yes, it is! Currently, there are no open pull requests linked to this issue.
We only have PR #2188, which is related to the Rate Limiting feature.

Is the expected feature to make the rate limit definitions in the global configuration by grouping the routes?

It depends on contribution and its design... However, the requirements of this issue do request some global options to be reused in every route. I believe the easiest solution is to assign global options to all routes exclusively, but implementing some form of grouping should not be difficult.
Are you planning to contribute? When?


Simplified SageMaker conda create command for pytorch v1 stable

Simplified the conda create command now that pytorch v1 is out. Same command as the one outlined here
Also replaced the conda update with conda install in the SageMaker start script as it is often necessary to actually get an upgrade to complete

Many thanks!


Support saving state of opened ViewHolders

Support disabling close-on-scroll functionality and saving the opened state of ViewHolders after they are scrolled off the screen and recycled.

Closed by #7


Make CameraState public

Is your feature request related to a problem? Please describe.
When you want to access the CameraState to record video in a Foreground Service for example, you are currently out of luck
Describe the solution you'd like
Remove the internal property
Describe alternatives you've considered
Are you willing to provide a PR?
Yes

Perfect, thanks for your response @ujizin! I'm shamelessly going to use this thread to ask you a question that's not related to this issue. Do you know if you can use cameraX in a foreground service? :D I couldn't find anything about it on the internet and my attempts all failed. Since you seem to know a lot about cameraX, I was wondering if you know whether that is even possible :D

That was quick, thank you very much!
Regarding CameraX in Foreground Services, it seems as if that is really not possible as camerax needs to run on the main thread, I tried running this service:
@ExperimentalVideo class VideoRecorderService: LifecycleService() {
    lateinit var cameraController: LifecycleCameraController

    private var job = SupervisorJob()
    private var scope = CoroutineScope(Dispatchers.IO + job)

    override fun onCreate() {
        super.onCreate()

        scope.launch {
            cameraController = LifecycleCameraController(this@VideoRecorderService)

            // Hack to make sure camera is initialized
            delay(2000L)
            startRecording()
        }
    }

    fun startRecording() {
        cameraController.startRecording(
            OutputFileOptions.builder(
                File(externalCacheDir!!.absolutePath + "/video.mp4"),
            ).build(),
            ContextCompat.getMainExecutor(this),
            object: OnVideoSavedCallback {
                override fun onVideoSaved(outputFileResults: OutputFileResults) {
                    println("Video saved")
                }

                override fun onError(videoCaptureError: Int, message: String, cause: Throwable?) {
                    println("Video error")
                }
            }
        )

    }
}

but this results in the following error:
java.lang.IllegalStateException: Not in application's main thread

I guess I'll stick to Camera2 :/


include/endian:add openbsd style macro

add this macro bemtoh htobem lemtoh htolem
Signed-off-by: anjiahao<EMAIL_ADDRESS>Summary
add some endian macro
Impact
nothing
Testing
ci

do you have an example of apps which uses these api?

do you have an example of apps which uses these api?

crypto crypto use it

do you have an example of apps which uses these api?

crypto crypto use it

ok. thank you


[build] Fix cmake config for reflection test without dynamic stdlib

Build SwiftReflectionTest only if swift-reflection-test is available because it depends on the tool and the tool is not available when no dynamic stdlib is built

@swift-ci Please smoke test

@swift-ci build toolchain

@swift-ci test


question about size

hello，is this a cvpr2018 poster paper or arxiv paper?
Besides, when you test, your input is not crop(256512), is 3841248. If it will be out of memory? if my code will be out of memory when 384*1248, how can I test?
thank you very much.

@zyfsa
Hi, this paper has been accepted to CVPR2018.
It spend around 4500 MB GPU memory to test KITTI.
You may need a GPU with higher capacity if the code is out of memory

In the latest version of the code the crop size is 1232x368 for KITTI. Shouldn't it be 1248x384?

@thias15
We pad the width and height of images to the multiple of 32.

训练集和测试集图像尺寸不一样对测试结果影响大吗？例如SceneFlow数据集上图像都填充到544*960是不是性能更好？

sceneflow数据集的尺寸不是540960吗，代码中是进行了裁剪，不是填充，怎么得到544960的结果


The link for pretrained model is not available.

Hi, thanks for your great work. But I just found that the link for your pre-trained model is unavailable. Could your please update it?
Thanks.

We will release all the pre-trained models in few days.

Any update on this?

We have released the VMamba-T/S pre-trained weights. See README.

Thanks! When will the Base version be released?

We have released the logs and checkpoints now. If you have any questions in using that, do not hesitate to contact us, and we' try to fix as soon as possible.


urlencode linkfied branch refs in PR section

linkfied branch refs should be url encoded when having branch names like #123-refactor-foo.
See #246 for more information

WDYT @sindresorhus ??

Thanks for the PR, @Ma27!
LGTM. Will wait for 1 more before merging.

Looks good. Thanks @Ma27 :)


Foreground image + transparency + fixes

Main:

[x] Ability to set foreground image (Closes #86)
[x] Ability to set transparency for background and foreground images (Closes #85)

Other:

[x] Update Aura (Closes #111)
[x] Update CAVA in flatpak and snap (Closes #103)
[x] Switch back to using Pulse Audio by default (Closes #100)

Did you want to fix #99 and then make this rc1 and stable friday?

Did you want to fix #99

Sorry, forgot to make a separate commit, it was fixed in https://github.com/NickvisionApps/Cavalier/pull/112/commits/024089f6daa2dea5fbbff5e1ac1f0d0e4782daf7

make this rc1 and stable friday?

I want to make this beta1; rc and stable next week. Considering the amount of changes I want to give more time for people who want to test it.


diff: /../Podfile.lock: No such file or directory

I just build the workspace inside the zip file containing the project and I got this error in xcode diff: /../Podfile.lock: No such file or directory
what do i do?

Try to run pod install

Thanks, It did work. just that i don't understand the Chinese letterings in the app


fix update-python-resources for formulae not in a tap

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[ ] Have you successfully run brew tests with your changes locally?
[ ] Have you successfully run brew man locally and committed any changes?

Follow up to https://github.com/Homebrew/brew/pull/9185. This fixes a bug reported in https://github.com/Homebrew/brew/pull/9185#issuecomment-733247821.
Even after being reminded of this issue by https://github.com/Homebrew/brew/pull/9249 (and noting that I would check for this), I still missed an instance where the pypi_formula_mappings method isn't available for formulae that aren't in a tap. Instead of calling formula.tap.pypi_formula_mappings, update-python-resources will now call formula.tap&.pypi_formula_mappings to simply return nil instead of failing when formula.tap is nil.

Review period skipped due to critical label.

Works much better now - thanks, @Rylan12!


Label not found: INBOX

Recently I'm getting "Label not found: INBOX" as output. The unread messages count is correct though:

Problem is that the polybar module now only shows the error message:

This is the output of bar-gmail labels:

Any Idea what might be the issue here?

i removed the the folder ~/.cache/bar-gmail and renewed the authentication with bar-gmail auth. Everything working as expected again


Updations in the readme file

@tallguyjenks
Hi ,
There are minute errors and scope of improvements in the first paragraph of the readme that are subtle but vivid.
Can you assign this issue to me?
Otherwise I would mention them here and you can correct it yourself

Assigned :)

Hey .
How about adding the youtube link that inspired you to do this project??
Will make the project description in the readme look sophisticated and complete.


Fix 10.10 Yosemite Soundflowerbed Crash

Fixes a crash in Soundflowerbed on 10.10 Yosemite.

Anthony -
Ok, so I had some time to dig through all this.
First off, readGlobalPrefs, writeGlobalPrefs, and related prefs functions certainly are a memory management mess. Lot of commented out CFReleases that are just leaking memory straight away. But small amounts memory, such that we can ignore that for now.
Looking at the original code though, the CFRelease(num) (line 1125) seems correct as it is. The CFPreferencesCopyAppValue() call creates the num, the if(num) ensures its not null, and then its released. Given that the crashlog is for a CFRelease(null), we can kind of rule out that that's the problem.
Guessing most likely the crashlog is something else stomping on memory, and the CFRelease(null) seen is an accident of that. I checked all the CFReleases in the codebase, and they are all well guarded with if(null) checks.

I don't understand the specific mechanics of the issue because I didn't try to hunt it down fully, however, this works and what's currently available doesn't.  If I have some extra time perhaps I'll follow up on the PR.

FYI this fix (or one strikingly similar to it) is starting to pop up in other forks.

Got a link to the other ones? I'd like to look at them too.

https://github.com/mLupine/SoundflowerBed
Someone decided to take it upon themselves to create a whole fork around the patch.


How to convert jsx back to glft ?

I have modified my gltf file converted to jsx and now want to convert it back to gltf? How can I do it ?

the gltf lives along the jsx tree, it is never changed or touched in any way. and you still need it to be present when you load it. all that gltfjsx does is extract some data from it to build a virtual graph or tree.

Ah! Got it.


Using name in alternate URI format as db key is not future-proof

It seems that ndn-python-repo is converting the data name into its alternate URI representation, and using that as the database key for insertions and queries. The alternate URI format is mainly for human consumption and is not designed for long-term storage. One potential compatibility problem that may arise in the future is the following:

Data with name /42=A is inserted into the repo; at this time name component type 42 does not have an alternate URI syntax defined yet.
The alternate syntax foo=<value> is defined for component type 42 and python-ndn gains support for it.
The repo is queried for data /42=A, but since the library now transforms it into /foo=A, the database lookup finds no matches.

So, using the alternate URI format is rather risky. I see at least two possible solutions.

Declare the database key as BLOB (in sqlite, not sure about the other backends) and store the names in their original binary encoding.
Always use the "plain" (aka "canonical") URI format as defined here.

This is because python-ndn uses alternative URI representation.
python-ndn always uses rawbytes as keys so I didn't consider this issue.
Is it possible for ndn-python-repo to do the same thing?

This is because python-ndn uses alternative URI representation.
python-ndn always uses rawbytes as keys so I didn't consider this issue.
Is it possible for ndn-python-repo to do the same thing?

Yes, I think ndn-python-repo can use raw bytes as keys, like in python-ndn.

Fixed with https://github.com/JonnyKong/ndn-python-repo/commit/bf2e4dae86099ee6ec494a08c2d9a45874ee52f9.


Why using activitynet's mean to normalize?

question 1:
we need to  train kinetices model first, however why using activitynet dataset mean to normlize?
in opts.py the "mean_dataset' is 'activitynet' by default,  In the next the opt.mean will be [114,107,99]?
Is it right? or  I may misunderstand the code?
question 2:
the normalization  function is    for t, m, s in zip(tensor, self.mean, self.std):
t.sub_(m).div_(s)
that the mean is one of the ([114.7, 107.7, 99.4]{activitynet} / [110.6, 103.1, 96.2]{ kinetices})
and the std is [1,1,1],.
the function I understand  is right?     Because I have no GPU to run code,recently!
Thanks!

I'm really confused by the answer kenshohara provided in #12 and #7

Maybe these comments are outdated.
In the recent update (April/2020) kenshohara make available this new pretrained weights and recommended to just use those flags.

He did not metion any mean or normalization, so I assumed that the default is the one.
In the opts.py file:
    parser.add_argument('--mean_dataset',
                        default='kinetics',
                        type=str,
                        help=('dataset for mean values of mean subtraction'
                              '(activitynet | kinetics | 0.5)'))
    parser.add_argument('--no_mean_norm',
                        action='store_true',
                        help='If true, inputs are not normalized by mean.')
    parser.add_argument(
        '--no_std_norm',
        action='store_true',
        help='If true, inputs are not normalized by standard deviation.')
    parser.add_argument(
        '--value_scale',
        default=1,
        type=int,
        help=
        'If 1, range of inputs is [0-1]. If 255, range of inputs is [0-255].')

Kinetics mean is the default, followed by value_scale = 1.
Then in the main.py file get_opt() function:
opt.mean, opt.std = get_mean_std(opt.value_scale, dataset=opt.mean_dataset)

And in the mean.py file:
def get_mean_std(value_scale, dataset):
    assert dataset in ['activitynet', 'kinetics', '0.5']

    if dataset == 'activitynet':
        mean = [0.4477, 0.4209, 0.3906]
        std = [0.2767, 0.2695, 0.2714]
    elif dataset == 'kinetics':
        mean = [0.4345, 0.4051, 0.3775]
        std = [0.2768, 0.2713, 0.2737]
    elif dataset == '0.5':
        mean = [0.5, 0.5, 0.5]
        std = [0.5, 0.5, 0.5]

    mean = [x * value_scale for x in mean]
    std = [x * value_scale for x in std]

    return mean, std

Maybe these comments are outdated.
In the recent update (April/2020) kenshohara make available this new pretrained weights and recommended to just use those flags.

He did not metion any mean or normalization, so I assumed that the default is the one.
In the opts.py file:
    parser.add_argument('--mean_dataset',
                        default='kinetics',
                        type=str,
                        help=('dataset for mean values of mean subtraction'
                              '(activitynet | kinetics | 0.5)'))
    parser.add_argument('--no_mean_norm',
                        action='store_true',
                        help='If true, inputs are not normalized by mean.')
    parser.add_argument(
        '--no_std_norm',
        action='store_true',
        help='If true, inputs are not normalized by standard deviation.')
    parser.add_argument(
        '--value_scale',
        default=1,
        type=int,
        help=
        'If 1, range of inputs is [0-1]. If 255, range of inputs is [0-255].')

Kinetics mean is the default, followed by value_scale = 1.
Then in the main.py file get_opt() function:
opt.mean, opt.std = get_mean_std(opt.value_scale, dataset=opt.mean_dataset)

And in the mean.py file:
def get_mean_std(value_scale, dataset):
    assert dataset in ['activitynet', 'kinetics', '0.5']

    if dataset == 'activitynet':
        mean = [0.4477, 0.4209, 0.3906]
        std = [0.2767, 0.2695, 0.2714]
    elif dataset == 'kinetics':
        mean = [0.4345, 0.4051, 0.3775]
        std = [0.2768, 0.2713, 0.2737]
    elif dataset == '0.5':
        mean = [0.5, 0.5, 0.5]
        std = [0.5, 0.5, 0.5]

    mean = [x * value_scale for x in mean]
    std = [x * value_scale for x in std]

    return mean, std

Thanks, but actually I'm using the old pretrained weights with my own scripts, not the weights in the 2020 update.
According to their CVPR paper, they used activitynet's mean.

Hi,
@guilhermesurek
Thank you for your point.
So how we should calculate the mean and std when the model is trained on two datasets. For example, they have pretrained model on kinetics and moments in time. For inference how can we normalize the new data?
there are some statistics about how we can calculate the mean and std of merged sets which we should consider them as the independent sets.
Thank you.

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


create 0008-string-to-integer.go

File(s) Modified:  0008-string-to-integer.go
Language(s) Used: Go
Submission URL: _https://leetcode.com/problems/string-to-integer-atoi/submissions/890882703/_

No problem! It was my pleasure to contribute.


Regex: Allow "v" in tag name to be optional

@jenslind I've found a bug so I think this one is not ready.
Progress: http://jsbin.com/hogopiguci/5/edit?js,console

Thanks! Released in 2.0.3.


"Bratia" is listed in the drop-down menu

Description:
"Bratia" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Bratia" in the search bar.

Expected results
The location is listed in the drop-down menu as "Bratia, Argeș (Ciomăgești)".


Invalid Command Line

Connect to vnc.html via web browser
Click connect
black screen followed by a windows error:
extracting main application files...
Invalid command line
OK button

wine: cannot find '/root/prefix32/drive_c/Program Files/Blue Iris 4/BlueIris.exe'

If I run blueiris.sh by hand as suggest in another issue here, I just get:
Another instance of setup is already running

Bottom line is the container doesn't work and I'm wondering why you even bother publishing it in this state. You're just wasting everyone's time.

This was created as a proof of concept, and it was working 7 months ago when it was initially published. I do not have the time to maintain it, and honestly, comments like yours above do not encourage me to spend time away from family to help you out. Please submit a constructive issue and keep the negative comments to yourself.


Font Request: OpenDyslexic

Font Name

OpenDyslexic

Link to font source

https://github.com/antijingoist/opendyslexic
https://opendyslexic.org

Link to font license

https://github.com/antijingoist/opendyslexic/blob/master/OFL.txt

Additional context

This is among the few open source alternatives I've found for dyslexia-aware typesetting that also has a monospace form: I'm particuarly interested in the code reading/editing/annotating/review use case.

More broadly: thanks for fontsource :heart_eyes_cat: ! I may very well be doing yet another repacking for jupyterlab-fonts and really appreciate the data-driven, license-aware effort undertaken here!

@bollwyvl, @fontsource/opendyslexic has been published. Thanks!

Brilliant, thank you!


Someone to integrate change-profile route to update user profile fields

Someone to integrate change-profile route to update user profile fields?
https://github.com/colinskow/superlogin/pull/136/commits/efb21bf430eaa6b2f256b725200aff319b4c494a
https://github.com/colinskow/superlogin/pull/136/commits/6387afdb2d701328aff9aedfe35c187af89fb1a5

I'll take a look

Hi @micky2be thanks :)) It's top feature for us.

I'll have to wait for https://github.com/colinskow/superlogin/pull/136 to be merged

true.


Remove NameResolver

Following WyC#866, we need to remove NameResolver.  This will be replaced by an explicit NameResolution phase in the Whiley compiler.

This is actually very easy, since nothing in WyCC depends upon this interface.


[MINOR] Add a message for presto upgrade

What is the purpose of the pull request
We upgraded Hudi version from 0.5.3 to 0.9.0 in Presto 0.265 but that introduced a breaking dependency change in another presto module. Since then, we have fixed the hudi-presto-bundle in version 0.10.1. Now, we need to upgrade Hudi in Presto again. This is being tracked by HUDI-3010. This PR adds a note to either avoid upgrade or workaround it by manually placing the hudi-presto-bundle jar.
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@kywe665 Can you take a look at this too?


MinRole Shared Role

How does the Application with Search minrole align with the above architectural suggestions?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 88e12588-d632-a9fa-c3e8-aa6bb1b46f73
Version Independent ID: a7c0a603-f37a-ebad-2870-b35a9b3e76e3
Content: Plan enterprise search architecture in SharePoint Server 2016
Content Source: SharePoint/SharePointServer/search/plan-enterprise-search-architecture.md
Service: sharepoint-server-itpro
GitHub Login: @tklarsen
Microsoft Alias: tlarsen

I'm not sure I understand your question completely. All servers that shall be part of the enterprise search architecture need SharePoint to be installed with the Search MinRole. After creating the SSA you have all search components on one server, and then have to move them to the designated servers (with Search MinRole) (here's an example). Let me know if this didn't answer your question.

All of the recommendations seem to be for farms in which the Search roles are on dedicated servers. It would be helpful if there were architectural diagrams and tables of Minimum Hardware Resources for scenarios with Shared Role servers e.g., Application with Search

That would be a "it depends".

I am going to close this one out but please re-open if needed. I think @tseward might have the most experience here and maybe he could submit a PR with some of that knowledge to help clarify the article. Appreciated everyone!

I checked with the product team on the request for guidelines for mixing search and other roles on the same server. The answer is that mixing roles is not recommended in production because it leads to large and unpredictable variations in performance. The alternative is to split up in several VMs and assign them to distinct roles.


Packages should only be released if they will install successfully

Test installing a package that is about to be released before publishing to the package manager to ensure that, among other things, dependencies within the same service are all published. The test should run in isolation so that dependencies from the same service are only available if they are already published to the package manager.

Would it result in having to wait until packages are indexed by Nuget to be able to release the next one?


Layout of collection pages

Mockup had a thumbnail grid... but we may not have that on most collections.
Is a sidebar appropriate? What should go in it?
What should the header look like?

(Actually enumerating the collections is covered by #1.)

Mockup delivered, and skeleton is up. details can be filed separately.


Integrate with OneSignal for notifications

For the distinction between people who want all or just important notifications, I was thinking of using tags in onesignal. A user who just want important notifications can have no tags, and one that wants all can have the 'all' tag.
(this from my very brief reading on how one signal tags work, let me know if I'm not reading it correctly)

Tags sounds good. For my reference: https://documentation.onesignal.com/v3.0/docs/android-native-sdk#section-tags
To enable opt-in and opt-out fully in settings, we can use setSubscription: https://documentation.onesignal.com/v3.0/docs/android-native-sdk#section--setsubscription-.

When to prompt for notification types? When they've first made all the calls on an issue. Disable notifications until the prompt is first shown. If the user enables it in settings first, never show the prompt.


Best way to do with return in foreach?

Hi!
I would like to know how can I use pipeline collection with this code:
foreach ($myArrayOfAsciiCode as $ascii) {
    if (strpos($path, chr($ascii))) {
        return true;
    }
}

return false;

I do this:
return !Collection::from(self::INVALID_PATH_ASCII)
                  ->filter(
                      function (string $ascii) use ($path): bool {
                          return strpos($path, chr($ascii));
                      }
                  )
                  ->isEmpty();

Is this the better way?
Thanks

Hi. The some operation does exactly what you need. Let me know if you have further questions.

You could use some (the method names in the docs seem to be wrong, though. I'll create a PR to fix this):
Collection::from($myArrayOfAsciiCode)->some(function ($ascii) use ($path) {
   return strpos($path, chr($ascii)) !== false;
});

And I just realized the docs are showing wrong examples. Need to fix asap. Refer to tests for examples for now.

Fixed in #32

Thanks for your rapidity guys :blush:!


Software Update 2<IP_ADDRESS>

This software update introduces the following:

Adds extra information relating to miner sync status etc to Diagnostics Page
Bumps miner to latest GA (05.29.1)
Adds firmware version to diagnostics page.

A few units on the testnet have beaconed and witnesssed fine since the miner was bumped so pushing to prod.