Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 287 for value_or (0.19 sec)

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

        auto attr = ::mlir::TF::ComputeOutputComponent(
            value_port, [this](const ValuePort& port) { return results_[port]; });
        RecordValue(value_port, attr);
        return attr;
      }
    
      // Returns ShapeHandle if the op result could be computed as shape.
      ShapeHandle ComputeOutputAsShape(OpResult result, InferenceContext* ic);
    
      void RecordValue(const ValuePort& value_port, Attribute value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc

        auto assign_variable_op =
            dyn_cast_or_null<AssignVariableOp>(var_handle_user);
        if (!assign_variable_op) continue;
        auto value_op = assign_variable_op.getValue().getDefiningOp();
        auto dq_op = dyn_cast_or_null<DequantizeOp>(value_op);
        if (!dq_op || ref_qtype) continue;
        ref_qtype = dq_op.getInput().getType();
      }
      return ref_qtype;
    }
    
    class QuantizeVariablesPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      // Caller is responsible to call `TF_DeleteBuffer` to release the buffer.
      TF_Buffer* result = TF_NewBuffer();
      const std::string& value_str = *value;
      void* data = malloc(value_str.length());
      value_str.copy(static_cast<char*>(data), value_str.length(), 0);
      result->data = data;
      result->length = value_str.length();
      result->data_deallocator = [](void* data, size_t length) { free(data); };
      return result;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. tensorflow/c/tf_status_helper.cc

      status.ForEachPayload(
          [tf_status](absl::string_view key, const absl::Cord& value) {
            std::string key_str(key);
            std::string value_str(value);
            TF_SetPayload(tf_status, key_str.c_str(), value_str.c_str());
          });
    }
    
    absl::Status StatusFromTF_Status(const TF_Status* tf_status) {
      absl::Status status(StatusCodeFromTSLCode(TF_GetCode(tf_status)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/doc/pkg.go

    					header = true
    				}
    				pkg.valueDoc(value, printed)
    				break
    			}
    		}
    	}
    }
    
    // varsDoc prints all var documentation, if any, including a header.
    // Printed is the valueDoc registry.
    func (pkg *Package) varsDoc(printed map[*ast.GenDecl]bool) {
    	var header bool
    	for _, value := range pkg.doc.Vars {
    		// Constants and variables come in groups, and valueDoc prints
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          Iterator<V> valueItr = Iterators.emptyIterator();
    
          @Override
          public boolean hasNext() {
            return valueItr.hasNext() || valueCollectionItr.hasNext();
          }
    
          @Override
          public V next() {
            if (!valueItr.hasNext()) {
              valueItr = valueCollectionItr.next().iterator();
            }
            return valueItr.next();
          }
        };
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. src/go/types/errorcalls_test.go

    					if s, err := strconv.Unquote(lit.Value); err == nil {
    						if !balancedParentheses(s) {
    							t.Errorf("%s: unbalanced parentheses/brackets", fset.Position(lit.ValuePos))
    						}
    					}
    					return false
    				}
    				return true
    			})
    			return false
    		})
    	}
    }
    
    func isName(n ast.Node, name string) bool {
    	if n, ok := n.(*ast.Ident); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

            K key = (K) elements[i];
    
            Iterator<V> valueItr = valueIterators.get(key);
            if (valueItr == null) {
              valueIterators.put(key, valueItr = sampleValuesIterator());
            }
            entries[i] = mapEntry(key, valueItr.next());
          }
          return multimapGenerator.create((Object[]) entries).keys();
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. test/escape_reflect.go

    	mv := reflect.ValueOf(m)
    	kv := reflect.ValueOf(k) // ERROR "k escapes to heap"
    	ev := reflect.ValueOf(e) // ERROR "e escapes to heap"
    	mv.SetMapIndex(kv, ev)
    }
    
    // Unfortunate: k doesn't need to escape.
    func mapdelete(m map[string]string, k string) { // ERROR "m does not escape" "leaking param: k$"
    	mv := reflect.ValueOf(m)
    	kv := reflect.ValueOf(k) // ERROR "k escapes to heap"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. src/reflect/iter_test.go

    		val   Value
    		check func(*testing.T, iter.Seq[Value])
    	}{
    		{"int", ValueOf(4), func(t *testing.T, s iter.Seq[Value]) {
    			i := int64(0)
    			for v := range s {
    				if v.Int() != i {
    					t.Fatalf("got %d, want %d", v.Int(), i)
    				}
    				i++
    			}
    			if i != 4 {
    				t.Fatalf("should loop four times")
    			}
    		}},
    		{"int8", ValueOf(int8(4)), func(t *testing.T, s iter.Seq[Value]) {
    			i := int8(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top