Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 165 for setTypes (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

      // tensor<x!tf_type.string>.
      auto tensor_string_type =
          RankedTensorType::get({}, TF::StringType::get(builder.getContext()));
      main_func.getArguments().front().setType(tensor_string_type);
      main_func.setType(
          FunctionType::get(builder.getContext(), {tensor_string_type},
                            main_func.getFunctionType().getResults()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

    void UpdateFuncType(func::FuncOp func) {
      auto arg_types = func.front().getArgumentTypes();
      auto result_types = func.front().getTerminator()->getOperandTypes();
      func.setType(FunctionType::get(func.getContext(), arg_types, result_types));
    }
    
    void HandleFuncOp(Operation* op) {
      auto func = llvm::cast<func::FuncOp>(op);
      UpdateFuncType(func);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

              mlir::TF::ResourceType::get(
                  /*subtypes=*/{mlir::cast<TensorType>(global_tensor.getType())},
                  module.getContext()));
    
          arg.setType(new_arg_type);
        }
    
        // Update the function type.
        func.setType(mlir::FunctionType::get(module.getContext(),
                                             func.getBody().getArgumentTypes(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/timer/HotThreadMonitorTarget.java

                        esClient.admin().cluster().prepareNodesHotThreads().setIgnoreIdleThreads(ignoreIdleThreads).setInterval(interval)
                                .setThreads(threads).setTimeout(timeout).setType(type).execute().actionGet(timeout);
                append(buf, "cluster_name", () -> response.getClusterName().value()).append(',');
                final String hotThreads = response.getNodesMap().entrySet().stream().map(e -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe.go

    }
    
    // Set sets v = a, and returns v.
    func (v *Element) Set(a *Element) *Element {
    	*v = *a
    	return v
    }
    
    // SetBytes sets v to x, where x is a 32-byte little-endian encoding. If x is
    // not of the right length, SetBytes returns nil and an error, and the
    // receiver is unchanged.
    //
    // Consistent with RFC 7748, the most significant bit (the high bit of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. src/image/gif/writer_test.go

    	paletted := image.NewPaletted(image.Rect(0, 0, 640, 480), palette.Plan9)
    	rnd := rand.New(rand.NewSource(123))
    	for i := range paletted.Pix {
    		paletted.Pix[i] = uint8(rnd.Intn(256))
    	}
    
    	b.SetBytes(640 * 480 * 1)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		Encode(io.Discard, paletted, nil)
    	}
    }
    
    func BenchmarkEncodeRandomRGBA(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. internal/config/crypto_test.go

    	}
    
    	benchmarkEncrypt := func(size int, b *testing.B) {
    		var (
    			data      = make([]byte, size)
    			plaintext = bytes.NewReader(data)
    			context   = kms.Context{"key": "value"}
    		)
    		b.SetBytes(int64(size))
    		for i := 0; i < b.N; i++ {
    			ciphertext, err := Encrypt(KMS, plaintext, context)
    			if err != nil {
    				b.Fatal(err)
    			}
    			if _, err = io.Copy(io.Discard, ciphertext); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/cmd/link/internal/loadelf/ldelf.go

    		case elf.SHF_ALLOC:
    			sb.SetType(sym.SRODATA)
    
    		case elf.SHF_ALLOC + elf.SHF_WRITE:
    			if sect.type_ == elf.SHT_NOBITS {
    				sb.SetType(sym.SNOPTRBSS)
    			} else {
    				sb.SetType(sym.SNOPTRDATA)
    			}
    
    		case elf.SHF_ALLOC + elf.SHF_EXECINSTR:
    			sb.SetType(sym.STEXT)
    		}
    
    		if sect.name == ".got" || sect.name == ".toc" {
    			sb.SetType(sym.SELFGOT)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

          var_handle_op.getResource().replaceAllUsesWith(
              block.getArgument(it.first->getSecond()));
        }
        var_handle_op.erase();
      }
    
      if (!var_handle_shared_names->empty())
        function.setType(FunctionType::get(function.getContext(), func_arg_types,
                                           func_type.getResults()));
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/compress/lzw/reader_test.go

    		b.Run(fmt.Sprint("1e", e), func(b *testing.B) {
    			b.StopTimer()
    			b.SetBytes(int64(n))
    			buf1 := getInputBuf(buf, n)
    			runtime.GC()
    			b.StartTimer()
    			for i := 0; i < b.N; i++ {
    				io.Copy(io.Discard, NewReader(bytes.NewReader(buf1), LSB, 8))
    			}
    		})
    		b.Run(fmt.Sprint("1e-Reuse", e), func(b *testing.B) {
    			b.StopTimer()
    			b.SetBytes(int64(n))
    			buf1 := getInputBuf(buf, n)
    			runtime.GC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:58 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top