Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 240 for Bos (0.25 sec)

  1. scripts/pegasus/build_test_sample_spm_no_bos.py

    # 4. now update the fixture
    Python
    - Registered: 2020-11-29 10:36
    - Last Modified: 2020-10-09 15:10
    - 646 bytes
    - Viewed (0)
  2. tunnel-common/src/main/java/com/alibaba/arthas/tunnel/common/SimpleHttpResponse.java

            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            ObjectOutputStream out = null;
            try {
                out = new ObjectOutputStream(bos);
                out.writeObject(response);
                out.flush();
                return bos.toByteArray();
            } finally {
                try {
                    bos.close();
                } catch (IOException ex) {
    Java
    - Registered: 2020-12-03 00:57
    - Last Modified: 2020-10-23 11:02
    - 2.2K bytes
    - Viewed (0)
  3. docs/sources/getting-started/timeseries-dimensions.md

    | 09:00     | 24   | LGA      | A      |
    | 09:00     | 24.1 | LGA      | B      |
    | 09:00     | 20   | BOS      | A      |
    | 09:00     | 20.2 | BOS      | B      |
    | 10:00     | 26   | LGA      | A      |
    | 10:00     | 26.1 | LGA      | B      |
    | 10:00     | 22   | BOS      | A      |
    | 10:00     | 22.2 | BOS      | B      |
    
    Plain Text
    - Registered: 2020-11-29 14:46
    - Last Modified: 2020-11-25 23:53
    - 5.4K bytes
    - Viewed (0)
  4. templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/tokenization_{{cookiecutter.lowercase_modelname}}.py

        def __init__(
                self,
                vocab_file,
                unk_token="<|endoftext|>",
                bos_token="<|endoftext|>",
                eos_token="<|endoftext|>",
                **kwargs
        ):
            bos_token = AddedToken(bos_token, lstrip=False, rstrip=False) if isinstance(bos_token, str) else bos_token
            eos_token = AddedToken(eos_token, lstrip=False, rstrip=False) if isinstance(eos_token, str) else eos_token
    Python
    - Registered: 2020-11-29 10:36
    - Last Modified: 2020-11-17 20:11
    - 11.4K bytes
    - Viewed (0)
  5. model_cards/pranavpsv/gpt2-genre-story-generator/README.md

    superhero, action, drama, horror, thriller, sci_fi
    #### Input text format
    \<BOS> \<genre> Some optional text...
    
    **Example**: \<BOS> \<sci_fi> After discovering time travel,
    
    ```python
    # Example of usage
    from transformers import pipeline
    
    story_gen = pipeline("text-generation", "pranavpsv/gpt2-genre-story-generator")
    print(story_gen("<BOS> <superhero> Batman"))
    
    ```
    
    ## Training data
    
    Plain Text
    - Registered: 2020-11-29 10:36
    - Last Modified: 2020-08-11 14:36
    - 739 bytes
    - Viewed (0)
  6. src/test/java/com/alibaba/json/bvt/issue_1000/Issue1066.java

            System.out.println("序列化前的参数为:" + map);
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            try{
                serialize(map, bos);
    
                Object desRes = deserialize(bos.toByteArray());
                System.out.println("反序列化后的结果为:" + JSON.toJSONString(desRes));
            }finally {
                try{
                    bos.close();
                }catch (IOException e){
                }
            }
        }
    
    Java
    - Registered: 2020-12-02 01:53
    - Last Modified: 2017-05-09 03:53
    - 2.9K bytes
    - Viewed (0)
  7. model_cards/patrickvonplaten/bert2gpt2-cnn_dailymail-fp16/README.md

    # CLS token will work as BOS token
    bert_tokenizer.bos_token = bert_tokenizer.cls_token
    
    # SEP token will work as EOS token
    bert_tokenizer.eos_token = bert_tokenizer.sep_token
    
    
    # make sure GPT2 appends EOS in begin and end
    def build_inputs_with_special_tokens(self, token_ids_0, token_ids_1=None):
        outputs = [self.bos_token_id] + token_ids_0 + [self.eos_token_id]
        return outputs
    
    
    Plain Text
    - Registered: 2020-11-29 10:36
    - Last Modified: 2020-08-18 17:28
    - 12.4K bytes
    - Viewed (0)
  8. src/transformers/configuration_rag.py

            use_dummy_dataset=False,
            reduce_loss=False,
            label_smoothing=0.0,
            do_deduplication=True,
            exclude_bos_score=False,
            do_marginalize=False,
            output_retrieved=False,
            **kwargs
        ):
            super().__init__(
                bos_token_id=bos_token_id,
                pad_token_id=pad_token_id,
                eos_token_id=eos_token_id,
    Python
    - Registered: 2020-11-15 10:36
    - Last Modified: 2020-10-29 14:33
    - 8.4K bytes
    - Viewed (0)
  9. src/test/java/com/alibaba/json/ByteArrayTest2.java

            file.data = sb.toString().getBytes();
    
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            JSONWriter writer = new JSONWriter(new OutputStreamWriter(bos));
            writer.config(SerializerFeature.WriteClassName, true);
            writer.writeObject(file);
            writer.flush();
    
            System.out.println(bos);
    
            byte[] data = bos.toByteArray();
            Charset charset = Charset.forName("UTF-8");
    Java
    - Registered: 2020-12-02 01:53
    - Last Modified: 2020-01-28 13:35
    - 1.7K bytes
    - Viewed (0)
  10. instrumentation/src/androidTest/java/com/bumptech/glide/DataUriTest.java

      private String getBase64BitmapBytes(CompressFormat format) {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        Drawable drawable =
            Preconditions.checkNotNull(ContextCompat.getDrawable(context, ResourceIds.raw.canonical));
        Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap();
        bitmap.compress(format, 100, bos);
        byte[] data = bos.toByteArray();
        return Base64.encodeToString(data, /*flags=*/ 0);
      }
    Java
    - Registered: 2020-12-02 02:28
    - Last Modified: 2019-06-06 18:26
    - 3.1K bytes
    - Viewed (0)
Back to top