Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for return_values (0.19 sec)

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

      // Function return values are all the terminator operands + pass through
      // extern values (if enabled).
      auto return_values = llvm::to_vector<4>(terminator->getOperands());
      if (only_one_return_value) {
        return_values.resize(1);
      }
      if (extern_values_passthrough)
        return_values.insert(return_values.end(),
                             first_block.args_begin() + num_region_arguments,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

      llvm::SetVector<Value> return_values;
      llvm::SmallVector<Type> return_types;
    
      for (Operation *op : cluster.operations)
        for (OpOperand &use : op->getUses()) {
          // User is inside the cluster.
          if (in_cluster.contains(use.getOwner())) continue;
          // Do not return the same value multiple times.
          if (return_values.contains(use.get())) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      }
      for (Operation* op : cloning_ops) {
        builder.clone(*op, mapping);
      }
    
      SmallVector<Value> return_values;
      for (Value result : results) {
        return_values.push_back(mapping.lookupOrNull(result));
      }
      builder.create<func::ReturnOp>(location, return_values);
    
      // Create a function call to the newly created function.
      StringAttr new_func_name =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

            tensorflow::XlaExpression::CastExpressionFromTensor(*output);
        output_values.push_back(expr->AsXlaOp(&xla_builder_));
      }
    
      absl::Span<const xla::XlaOp> return_values(output_values);
      xla::XlaOp root_value = xla::Tuple(&xla_builder_, return_values);
    
      TF_ASSIGN_OR_RETURN(XlaComputation computation,
                          xla_builder_.Build(root_value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        String result =
            timeLimiter.callWithTimeout(
                Callables.returning(RETURN_VALUE), DELAY_MS, TimeUnit.MILLISECONDS);
    
        assertThat(result).isEqualTo(RETURN_VALUE);
      }
    
      public void testCallWithTimeout_wrapsCheckedException() throws Exception {
        Exception exception = new SampleCheckedException();
        ExecutionException e =
            assertThrows(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        String result =
            timeLimiter.callWithTimeout(
                Callables.returning(RETURN_VALUE), DELAY_MS, TimeUnit.MILLISECONDS);
    
        assertThat(result).isEqualTo(RETURN_VALUE);
      }
    
      public void testCallWithTimeout_wrapsCheckedException() throws Exception {
        Exception exception = new SampleCheckedException();
        ExecutionException e =
            assertThrows(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

          b.create<SelectOp>(index_type, compare_dt, lhs_index, rhs_index);
      Value selected_index =
          b.create<SelectOp>(index_type, compare_eq, min_index, min_val_index);
    
      Value return_values[] = {selected_input, selected_index};
      b.create<ReturnOp>(return_values);
    }
    
    //===----------------------------------------------------------------------===//
    // PartitionedCall op utilities.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-custom-operation.pbtxt

    library {
      function {
        signature {
          name: "foo"
          input_arg {
            name: "arg"
            type: DT_INT32
          }
          output_arg {
            name: "return_value"
            type: DT_INT32
          }
        }
        ret {
          key: "return_value"
          value: "arg"
        }
      }
    }
    versions {
      producer: 62
      min_consumer: 12
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetry.java

        public T withBackoffAndRetry(Callable<T> operation) {
            int backoff = initialBackOff;
            int retries = 0;
            T returnValue = null;
            while (retries < maxDeployAttempts) {
                retries++;
                Throwable failure;
                try {
                    returnValue = operation.call();
                    if (retries > 1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 04:09:56 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

      IRMapping new_op_mapper;
      for (Operation& op : function_body.getOps()) {
        if (llvm::isa<func::ReturnOp>(op)) {
          for (auto [call_result, return_value] :
               llvm::zip_equal(call_op.getResults(), op.getOperands())) {
            Value new_result = new_op_mapper.lookup(return_value);
    
            call_result.replaceAllUsesWith(new_result);
          }
          continue;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top