Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for value_or (0.15 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. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

                        def output = outputs.file(input.name + ".value")
                        println "Transformed \$input.name to \$output.name into \$output.parentFile"
                        output.text = String.valueOf(input.length()) + String.valueOf(parameters.target)
                    }
                }
    
                allprojects {
                    dependencies {
                        registerTransform(TransformWithMultipleTargets) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      RankedTensorType value_ty =
          mlir::dyn_cast<RankedTensorType>(op.getValue().getType());
      RankedTensorType bias_ty =
          mlir::dyn_cast<RankedTensorType>(op.getBias().getType());
      if (!bias_ty || !value_ty) return success();
    
      int64_t feature_dim_idx =
          tensorflow::GetTensorFeatureDimIndex(value_ty.getRank(), format);
      int64_t feature_dim = value_ty.getDimSize(feature_dim_idx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        }
      }
    
      if (!match_node) {
        return nullptr;
      }
    
      auto value_it = match_node->attr().find("value");
      if (value_it == match_node->attr().end()) {
        return nullptr;
      }
    
      if (!value_it->second.has_tensor()) {
        return nullptr;
      }
    
      return &value_it->second.tensor();
    }
    
    const TrackableObjectGraph::TrackableObject::SerializedTensor*
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  5. src/database/sql/sql.go

    	if value == nil {
    		ns.String, ns.Valid = "", false
    		return nil
    	}
    	ns.Valid = true
    	return convertAssign(&ns.String, value)
    }
    
    // Value implements the [driver.Valuer] interface.
    func (ns NullString) Value() (driver.Value, error) {
    	if !ns.Valid {
    		return nil, nil
    	}
    	return ns.String, nil
    }
    
    // NullInt64 represents an int64 that may be null.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        auto value_attr = const_op.getValue().dyn_cast<DenseIntElementsAttr>();
        if (!value_attr || value_attr.getNumElements() != 1) return std::nullopt;
    
        auto value_ty = value_attr.getType();
        if (!value_ty.hasRank() || value_ty.getRank() != expected_rank)
          return std::nullopt;
    
        auto splat = value_attr.getSplatValue<IntegerAttr>();
        return splat.getValue().getSExtValue();
      };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/authorization/v1/generated.pb.go

    		`EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`,
    		`}`,
    	}, "")
    	return s
    }
    func valueToStringGenerated(v interface{}) string {
    	rv := reflect.ValueOf(v)
    	if rv.IsNil() {
    		return "nil"
    	}
    	pv := reflect.Indirect(rv).Interface()
    	return fmt.Sprintf("*%v", pv)
    }
    func (m *ExtraValue) Unmarshal(dAtA []byte) error {
    	l := len(dAtA)
    	iNdEx := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 100.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.pb.go

    		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
    		`Expression:` + fmt.Sprintf("%v", this.Expression) + `,`,
    		`}`,
    	}, "")
    	return s
    }
    func valueToStringGenerated(v interface{}) string {
    	rv := reflect.ValueOf(v)
    	if rv.IsNil() {
    		return "nil"
    	}
    	pv := reflect.Indirect(rv).Interface()
    	return fmt.Sprintf("*%v", pv)
    }
    func (m *AuditAnnotation) Unmarshal(dAtA []byte) error {
    	l := len(dAtA)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 117.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/storage/v1/generated.pb.go

    	s := strings.Join([]string{`&VolumeNodeResources{`,
    		`Count:` + valueToStringGenerated(this.Count) + `,`,
    		`}`,
    	}, "")
    	return s
    }
    func valueToStringGenerated(v interface{}) string {
    	rv := reflect.ValueOf(v)
    	if rv.IsNil() {
    		return "nil"
    	}
    	pv := reflect.Indirect(rv).Interface()
    	return fmt.Sprintf("*%v", pv)
    }
    func (m *CSIDriver) Unmarshal(dAtA []byte) error {
    	l := len(dAtA)
    	iNdEx := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 133.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/autoscaling/v2beta1/generated.pb.go

    		`}`,
    	}, "")
    	return s
    }
    func valueToStringGenerated(v interface{}) string {
    	rv := reflect.ValueOf(v)
    	if rv.IsNil() {
    		return "nil"
    	}
    	pv := reflect.Indirect(rv).Interface()
    	return fmt.Sprintf("*%v", pv)
    }
    func (m *ContainerResourceMetricSource) Unmarshal(dAtA []byte) error {
    	l := len(dAtA)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 142.9K bytes
    - Viewed (0)
Back to top