Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 116 for testvalues (0.23 sec)

  1. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

          // recurse into the next axis.
          const bool is_last_axis = output_axis == num_dimensions - 1;
          if (is_last_axis) {
            new_values->push_back(
                input_tensor.getValues<Attribute>()[*input_indices]);
          } else {
            ComputePermutation(input_tensor, perm, output_shape, num_dimensions,
                               output_axis + 1, input_indices, new_values);
          }
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/AbstractTask.java

            taskMutator.mutate("Task.setDependsOn(Iterable)", new Runnable() {
                @Override
                public void run() {
                    lifecycleDependencies.setValues(dependsOn);
                }
            });
        }
    
        @Override
        public void onlyIf(final Closure onlyIfClosure) {
            taskMutator.mutate("Task.onlyIf(Closure)", new Runnable() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go

    		max = max.SetInt64(maxI16)
    	case "int8":
    		min = min.SetInt64(minI8)
    		max = max.SetInt64(maxI8)
    	default:
    		panic("unexpected type")
    	}
    	return cmp(min, "<=", val) && cmp(val, "<=", max)
    }
    
    func getValues(typ string) []*big.Int {
    	Uint := func(v uint64) *big.Int { return big.NewInt(0).SetUint64(v) }
    	Int := func(v int64) *big.Int { return big.NewInt(0).SetInt64(v) }
    	values := []*big.Int{
    		// limits
    		Uint(maxU64),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      mlir::Builder b(&context);
    
      // Create the sample tensor to convert.
      Tensor tensor(DT_STRING, TensorShape({1, 2, 2, 1}));
      EXPECT_EQ(4, tensor.NumElements());
      auto Tt = tensor.flat<tstring>();
      Tt.setValues({"one", "two", "three", "four"});
      auto value_or_status = ConvertTensor(tensor, &b);
      ASSERT_TRUE(value_or_status.ok());
      auto attr = value_or_status.value();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc

        if (!const_type || !const_type.getElementType().isSignlessInteger(8)) {
          return failure();
        }
    
        auto attr = mlir::cast<ElementsAttr>(op.getValue());
        for (mlir::APInt v : attr.getValues<mlir::APInt>()) {
          auto v_int = static_cast<int8_t>(*(v.getRawData()));
          if (v_int > 7 || v_int < -8) {
            return failure();
          }
        }
    
        Builder builder(op.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileTree.java

        public Set<Object> getBuiltBy() {
            return buildDependency.getMutableValues();
        }
    
        @Override
        public ConfigurableFileTree setBuiltBy(Iterable<?> tasks) {
            buildDependency.setValues(tasks);
            return this;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        int new_index = 0;
        while (((ellipsis_mask >> index) & 1) == 0) {
          padded_begin.push_back(begin_dense_elem_attr.getValues<int32_t>()[index]);
          padded_end.push_back(end_dense_elem_attr.getValues<int32_t>()[index]);
          padded_stride.push_back(
              stride_dense_elem_attr.getValues<int32_t>()[index]);
          if ((begin_mask >> index) & 1) revised_begin_mask |= (1 << new_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

            when:
            def generatedType = generate(SomeTypeWithParameters)
    
            then:
            generatedType.getMethod("getValues").returnType == List
            generatedType.getMethod("getValues").genericReturnType.actualTypeArguments == [String]
    
            generatedType.getMethod("getOptional").returnType == Optional
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  9. src/sync/atomic/value_test.go

    // license that can be found in the LICENSE file.
    
    package atomic_test
    
    import (
    	"math/rand"
    	"runtime"
    	"strconv"
    	"sync"
    	"sync/atomic"
    	. "sync/atomic"
    	"testing"
    )
    
    func TestValue(t *testing.T) {
    	var v Value
    	if v.Load() != nil {
    		t.Fatal("initial Value is not nil")
    	}
    	v.Store(42)
    	x := v.Load()
    	if xx, ok := x.(int); !ok || xx != 42 {
    		t.Fatalf("wrong value: got %+v, want 42", x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

              window_dimensions.getValues<IntegerAttr>()[i].getInt());
        }
    
        for (auto i = 0; i < window_strides.size(); ++i) {
          window_strides_vec.push_back(
              window_strides.getValues<IntegerAttr>()[i].getInt());
        }
    
        for (auto i = 0; i < base_dilations.size(); ++i) {
          base_dilations_vec.push_back(
              base_dilations.getValues<IntegerAttr>()[i].getInt());
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top