Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for new_retvals (0.32 sec)

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

      for (auto branch : branches) {
        auto new_retvals =
            llvm::to_vector<4>(branch.front().getTerminator()->getOperands());
        new_retvals.resize(new_retvals.size() + resource_arg_to_new_output.size());
        for (const auto& entry : resource_arg_to_new_output) {
          int64_t resource_arg_index = entry.getFirst();
          int64_t output_index = entry.getSecond();
          new_retvals[output_index] = branch.getArgument(resource_arg_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

              "output tensor array does not alias input in a while loop");
        }
        for (const string& source : grads[i]) {
          new_retvals.push_back(body_stats[arg].grads[source]);
        }
      }
      OpBuilder(old_body_ret)
          .create<func::ReturnOp>(old_body_ret->getLoc(), new_retvals);
      old_body_ret->erase();
      UpdateFuncType(body);
      // Recreate the while op.
      auto operands = llvm::to_vector<8>(while_op.getOperands());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.cc.golden

      TF_RETURN_IF_ERROR(op_ptr->Reset("Neg", raw_device_name));
      TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(x));
      int num_retvals = 1;
      return op_ptr->Execute(absl::MakeSpan(y, 1), &num_retvals);
    }
    
    // Op: MatMul()
    // Summary:
    //
    // Description:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 19:04:03 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/custom_device_test.cc

      TFE_TensorHandle* retval;
      int num_retvals = 1;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_DeleteTensorHandle(retval);
    
      // Custom device: inputs in same custom device works.
      matmul.reset(MatMulOp(context.get(), hcustom0.get(), hcustom0.get()));
      num_retvals = 1;
      executed = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 23:39:24 UTC 2020
    - 18.4K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc

                                      strlen(ResourceHandle::ANONYMOUS_NAME)));
    
      AbstractTensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      TF_RETURN_IF_ERROR(varhandle_op->Execute(
          absl::MakeSpan(&var_handle, num_retvals), &num_retvals));
      AbstractTensorHandlePtr owned_var_handle(var_handle);
      if (!tensorflow::isa<ImmediateExecutionTensorHandle>(
              owned_var_handle.get())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 11:28:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc

      ArgView output_arg = op_.OnlyOutput();
      Statement("int num_retvals = $0.size()", output_arg.VariableName());
      Statement("return " + Call(op_.VariableName(), "Execute",
                                 {output_arg.VariableName(), "&num_retvals"}));
    }
    
    void OpImplementationRenderer::RenderExecutionSingleOutput() {
      ArgView output_arg = op_.OnlyOutput();
      Statement("int num_retvals = 1");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/array_ops.cc

      TF_RETURN_IF_ERROR(op_ptr->Reset("Identity", raw_device_name));
      TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(input));
      int num_retvals = 1;
      return op_ptr->Execute(absl::MakeSpan(output, 1), &num_retvals);
    }
    
    // Op: IdentityN()
    // Summary: Returns a list of tensors with the same shapes and contents as the
    // input
    //
    // Description:
    //   tensors.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/math_ops.cc

      TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(x));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(y));
      int num_retvals = 1;
      return op_ptr->Execute(absl::MakeSpan(z, 1), &num_retvals);
    }
    
    // Op: Conj()
    // Summary: Returns the complex conjugate of a complex number.
    //
    // Description:
    //   Given a tensor `input` of complex numbers, this operation returns a tensor
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

                          no_sharing.length());
      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      TFE_Execute(op.get(), &var_handle, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      return new Variable(var_handle, type);
    }
    
    void Variable::Destroy(TFE_Context* context, TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 15:44:44 UTC 2021
    - 12.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/nn_ops.cc

      TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(features));
      TF_RETURN_IF_ERROR(op_ptr->AddInput(labels));
      int num_retvals = 2;
      AbstractTensorHandle* temp_outputs[2];
      Status status = op_ptr->Execute(temp_outputs, &num_retvals);
      *loss = temp_outputs[0];
      *backprop = temp_outputs[1];
      return status;
    }
    
    // Op: ReluGrad()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top