Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for floatkey (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h

    template <typename T>
    DenseElementsAttr GetScalarOfType(Type ty, T raw_value) {
      RankedTensorType scalar_ty = RankedTensorType::get({}, ty);
      if (auto float_ty = mlir::dyn_cast<FloatType>(ty)) {
        FloatAttr attr = FloatAttr::get(float_ty, raw_value);
        return DenseElementsAttr::get(scalar_ty, attr);
      } else if (auto int_ty = mlir::dyn_cast<IntegerType>(ty)) {
        IntegerAttr attr = IntegerAttr::get(int_ty, raw_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

      // Check quantization parameters for input and output.
      EXPECT_THAT(pack_input0->quantization->scale[0],
                  FloatEq(pack_input1->quantization->scale[0]));
      EXPECT_THAT(pack_input1->quantization->scale[0],
                  FloatEq(pack_input2->quantization->scale[0]));
      EXPECT_THAT(pack_input0->quantization->zero_point[0],
                  Eq(pack_input1->quantization->zero_point[0]));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

                                       flatbuffers::FlatBufferBuilder* builder) {
      std::vector<float> floatVec;
      floatVec.reserve(attrArray.getValue().size());
      for (auto attr : attrArray.getValue()) {
        floatVec.push_back(
            mlir::cast<mlir::FloatAttr>(attr).getValue().convertToFloat());
      }
      return builder->CreateVector(floatVec);
    }
    
    // F32Attr already returns a float as required by flatbuffer builders.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/debug.go

    // type).
    type slotCanonicalizer struct {
    	slmap  map[slotKey]SlKeyIdx
    	slkeys []LocalSlot
    }
    
    func newSlotCanonicalizer() *slotCanonicalizer {
    	return &slotCanonicalizer{
    		slmap:  make(map[slotKey]SlKeyIdx),
    		slkeys: []LocalSlot{LocalSlot{N: nil}},
    	}
    }
    
    type SlKeyIdx uint32
    
    const noSlot = SlKeyIdx(0)
    
    // slotKey is a type-insensitive encapsulation of a LocalSlot; it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  5. src/crypto/tls/bogo_shim_test.go

    	testenv.MustHaveExec(t)
    
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	if testenv.Builder() != "" && runtime.GOOS == "windows" {
    		t.Skip("#66913: windows network connections are flakey on builders")
    	}
    
    	// In order to make Go test caching work as expected, we stat the
    	// bogo_config.json file, so that the Go testing hooks know that it is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Maps.java

        public Entry<K, V2> floorEntry(@ParametricNullness K key) {
          return transformEntry(fromMap().floorEntry(key));
        }
    
        @Override
        @CheckForNull
        public K floorKey(@ParametricNullness K key) {
          return fromMap().floorKey(key);
        }
    
        @Override
        public NavigableMap<K, V2> headMap(@ParametricNullness K toKey) {
          return headMap(toKey, false);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(mapEntry("one", 3), map.ceilingEntry("one"));
        assertEquals("one", map.lowerKey("three"));
        assertEquals("one", map.lowerKey("r"));
        assertEquals("one", map.floorKey("r"));
        assertEquals("three", map.floorKey("three"));
    
        assertThat(map.descendingMap().entrySet())
            .containsExactly(mapEntry("two", 3), mapEntry("three", 5), mapEntry("one", 3))
            .inOrder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      @Override
      @CheckForNull
      public Entry<K, V> floorEntry(K key) {
        return headMap(key, true).lastEntry();
      }
    
      @Override
      @CheckForNull
      public K floorKey(K key) {
        return keyOrNull(floorEntry(key));
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> ceilingEntry(K key) {
        return tailMap(key, true).firstEntry();
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/ssa.go

    }
    
    func (s *state) uint64Tofloat(cvttab *u642fcvtTab, n ir.Node, x *ssa.Value, ft, tt *types.Type) *ssa.Value {
    	// if x >= 0 {
    	//    result = (floatY) x
    	// } else {
    	// 	  y = uintX(x) ; y = x & 1
    	// 	  z = uintX(x) ; z = z >> 1
    	// 	  z = z | y
    	// 	  result = floatY(z)
    	// 	  result = result + result
    	// }
    	//
    	// Code borrowed from old code generator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top