Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for idioms (0.23 sec)

  1. src/time/time.go

    // the operation being timed:
    //
    //	start := time.Now()
    //	... operation that takes 20 milliseconds ...
    //	t := time.Now()
    //	elapsed := t.Sub(start)
    //
    // Other idioms, such as [time.Since](start), [time.Until](deadline), and
    // time.Now().Before(deadline), are similarly robust against wall clock
    // resets.
    //
    // The rest of this section gives the precise details of how operations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      const int num_dims = 2;
      int64_t* dims = new int64_t[num_dims];
      int64_t num_elements = 1;
      dims[0] = batch_size;
      dims[1] = 1;
      for (int64_t i = 0; i < num_dims; ++i) {
        num_elements *= dims[i];
      }
      TF_Tensor* t = TF_AllocateTensor(TF_STRING, dims, num_dims,
                                       sizeof(TF_TString) * num_elements);
      delete[] dims;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/lift_quantizable_spots_as_functions.mlir

      %5 = stablehlo.dynamic_broadcast_in_dim %1, %4, dims = [3] : (tensor<16xf32>, tensor<4xindex>) -> tensor<?x28x28x16xf32>
      %6 = stablehlo.add %3, %5 : tensor<?x28x28x16xf32>
      %7 = shape.shape_of %6 : tensor<?x28x28x16xf32> -> tensor<4xindex>
      %8 = stablehlo.dynamic_broadcast_in_dim %2, %7, dims = [] : (tensor<f32>, tensor<4xindex>) -> tensor<?x28x28x16xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  4. tensorflow/c/kernels_test.cc

    #else
      const char* device_name_ = tensorflow::DEVICE_CPU;
    #endif
    };
    
    // Validates that the tensor has shape and type corresponding to
    // dims and dtype.
    void validate_tensor(TF_Tensor* tensor, int64_t* dims, int64_t num_dims,
                         TF_DataType dtype);
    
    // Copies data of length tensor_size_bytes from values to tensor.
    template <typename T>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.h

    // Returns the shape of the Tensor referenced by `output` in `graph`
    // into `dims`. `dims` must be an array large enough to hold `num_dims`
    // entries (e.g., the return value of TF_GraphGetTensorNumDims).
    //
    // If the number of dimensions in the shape is unknown or the shape is
    // a scalar, `dims` will remain untouched. Otherwise, each element of
    // `dims` will be set corresponding to the size of the dimension. An
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize_composite_functions.mlir

          %2 = stablehlo.reshape %1 : (tensor<i32>) -> tensor<1xi32>
          %3 = stablehlo.concatenate %2, %cst_0, dim = 0 : (tensor<1xi32>, tensor<1xi32>) -> tensor<2xi32>
          %4 = stablehlo.dynamic_broadcast_in_dim %arg2, %3, dims = [1] : (tensor<3xf32>, tensor<2xi32>) -> tensor<?x3xf32>
          %5 = stablehlo.add %0, %4 : tensor<?x3xf32>
          return %5 : tensor<?x3xf32>
        }
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 91.6K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_test.cc

      TFE_DeleteContextOptions(opts);
    
      std::vector<int64_t> dims(4, 1);
      TFE_Op* op = TFE_NewOp(ctx, "AvgPool", status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TF_Tensor* tensor =
          TF_AllocateTensor(TF_FLOAT, dims.data(), dims.size(), sizeof(float));
      float tensor_data[] = {1};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  8. src/runtime/malloc.go

    	// to a 48-bit address space like every other arm64 platform.
    	//
    	// WebAssembly currently has a limit of 4GB linear memory.
    	heapAddrBits = (_64bit*(1-goarch.IsWasm)*(1-goos.IsIos*goarch.IsArm64))*48 + (1-_64bit+goarch.IsWasm)*(32-(goarch.IsMips+goarch.IsMipsle)) + 40*goos.IsIos*goarch.IsArm64
    
    	// maxAlloc is the maximum size of an allocation. On 64-bit,
    	// it's theoretically possible to allocate 1<<heapAddrBits bytes. On
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheBuilder.java

       * building caches whose key or value types are incompatible with the types accepted by the
       * weigher already provided; the {@code CacheBuilder} type cannot do this. For best results,
       * simply use the standard method-chaining idiom, as illustrated in the documentation at top,
       * configuring a {@code CacheBuilder} and building your {@link Cache} all in a single statement.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/prove.go

    		block *Block    // current handled block
    		state walkState // what's to do
    	}
    	work := make([]bp, 0, 256)
    	work = append(work, bp{
    		block: f.Entry,
    		state: descend,
    	})
    
    	idom := f.Idom()
    	sdom := f.Sdom()
    
    	// DFS on the dominator tree.
    	//
    	// For efficiency, we consider only the dominator tree rather
    	// than the entire flow graph. On the way down, we consider
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
Back to top