Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getInitialValue (0.16 sec)

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

      if (!state) {
        return nullptr;
      }
      auto ops = state->getValue().ops;
      if (ops.size() != 1) {
        return nullptr;
      }
      Operation* source = *ops.begin();
      return source;
    }
    
    Attribute GetInitialValue(Operation* source) {
      if (auto global = dyn_cast<tf_saved_model::GlobalTensorOp>(source)) {
        if (global.getValue()) {
          return *global.getValue();
        }
      }
      return nullptr;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

    /// concerns.
    //
    // The Derived class should have a static method to return the initial value to
    // use for reduction:
    //   static Value GetInitialValue(Type reduce_element_type, Location loc,
    //                                PatternRewriter *rewriter);
    // The reduce_element_type is guaranteed to be a float, int, or complex type
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

                    CountingService() {
                        value = parameters.initial.get()
                        println("service: created with value = \${value}")
                    }
    
                    synchronized int getInitialValue() { return parameters.initial.get() }
    
                    // Service must be thread-safe
                    synchronized void reset() {
                        value = parameters.initial.get()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
Back to top