it('should correctly render the passed @Input value', () => {
component.message = 'Enter a new title'; // input value modify
fixture.detectChanges(); // make change
const compiled = fixture.debugElement.nativeElement; // compiled component
expect(compiled.querySelector('p').textContent).toBe('Enter a new title'); // component content verify
});
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const path = require('path'); | |
| // _ represent the module of lodash | |
| const _ = require('lodash'); | |
| // normalize the string | |
| const titleize = require('titleize'); | |
| // module for Transforming the input into a human friendly form | |
| const humanizeString = require('humanize-string'); | |
| // module for Reading the closest package.json file | |
| const readPkgUp = require('read-pkg-up'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const path = require('path'); | |
| const _ = require('lodash'); | |
| const titleize = require('titleize'); | |
| const humanizeString = require('humanize-string'); | |
| const readPkgUp = require('read-pkg-up'); | |
| const updateNotifier = require('update-notifier'); | |
| const Configstore = require('configstore'); | |
| const {namespaceToName} = require('yeoman-environment'); | |
| const getPkgVersion = require('./utils/packageHelper') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.applicationService.getApplicationTableData().subscribe(data => { | |
| const tempList = []; | |
| data.forEach((item, index) => { | |
| const countLink = item.applicationCount; | |
| this.applicationService.getApplicationCountData(countLink).subscribe(count => { | |
| tempList.push({ | |
| key: (index + 1).toString(), | |
| linkUrl: item.linkUrl, | |
| applicationName: item.applicationName, | |
| // applicationCount: item.applicationCount, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Title for Issue> | |
| ## Title | |
| ## Description | |
| ## Expected | |
| ## Issue |
Clean version of https://juejin.cn/post/7118919471317647397
- Linux 中间件
- Nginx
- JRE/JDK
- Node
- MySQL
- MongoDB
- 在 Transformer 的 encoder 和 decoder 中对于序列之间的相关性的表达是通过 Attention 机制实现的
- Attention 机制强在可以将当前的选中位置的序列信息与整个序列中的信息构建起相关性,但是这份相关性是不关注序列的语序的,相关性的处理操作是平行进行,或者说并行的
- 但是在传统的基于 RNN 的序列模型(包括升级版的 LSTM 和 GRU)中,输入的序列顺序是模型的内置特性,这些模型能自然地处理输入之间的时间关系
- Transformer 中接收的是具备时序关系的序列信息,但是只依靠Attention机制无法体现时序的概念
- 因此需要一个特殊的概念来表示序列中顺序的概念
OlderNewer
