Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for Input (0.12 sec)

  1. tensorflow/c/c_api.cc

    void TF_AddInput(TF_OperationDescription* desc, TF_Output input) {
      desc->node_builder.Input(&input.oper->node, input.index);
    }
    
    void TF_AddInputList(TF_OperationDescription* desc, const TF_Output* inputs,
                         int num_inputs) {
      std::vector<NodeBuilder::NodeOut> input_list;
      input_list.reserve(num_inputs);
      for (int i = 0; i < num_inputs; ++i) {
        input_list.emplace_back(&inputs[i].oper->node, inputs[i].index);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/nn_grad.cc

      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        // Grad for Softmax Input
        TF_RETURN_IF_ERROR(BroadcastMul(
            ctx, grad_outputs[0], forward_outputs_[1],
            grad_inputs.subspan(0, 1)));  // upstream_grad * local softmax grad
    
        // Grad for labels is null
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
        for (int i = 0; i < num_inputs; ++i) {
          if (input_tensors[i] == nullptr) continue;
          all_input_tensors.emplace_back();
          Tensor& input_tensor = all_input_tensors.back();
          status->status = TF_TensorToTensor(input_tensors[i], &input_tensor);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/array_grad.cc

        for (int i = 0; i < grad_outputs.size(); i++) {
          auto grad_input = grad_outputs[i];
          // TODO(srbs): Should we add a copy contructor to AbstractTensorHandle
          // that takes care of this similar to `Tensor`?
          if (grad_input) {
            grad_input->Ref();
          }
          grad_inputs[i] = grad_input;
        }
        return absl::OkStatus();
      }
      ~IdentityNGradientFunction() override {}
    };
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/custom_gradient_test.cc

        if (grad_inputs[0]) {
          grad_inputs[0]->Ref();
        }
        return absl::OkStatus();
      }
    };
    
    // Computes:
    //
    // @tf.custom_gradient
    // def f(input):
    //   def grad(grads):
    //     return grads[0]
    //   return tf.exp(input), grad
    // outputs = [f(inputs[0])]
    Status ExpWithPassThroughGrad(AbstractContext* ctx,
                                  absl::Span<AbstractTensorHandle* const> inputs,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/grad_test_helper.cc

        if (!outputs[i]) continue;
    
        AbstractTensorHandlePtr numerical_grad;
        {
          AbstractTensorHandle* numerical_grad_raw;
          s = CalcNumericalGrad(ctx, model, inputs,
                                /*input_index=*/i, use_function,
                                &numerical_grad_raw);
          ASSERT_EQ(errors::OK, s.code()) << s.message();
          numerical_grad.reset(numerical_grad_raw);
        }
    
        TF_Tensor* numerical_tensor;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_remote_function_test.cc

                                           bool has_packed_input = false) {
      return TestRemoteExecuteSilentCopies(async, remote, /*func=*/true,
                                           heavy_load_on_streaming_rpc,
                                           remote_func_outputs, has_packed_input);
    }
    
    TEST(CAPI, RemoteExecuteSilentCopiesAsyncFunc) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.cc

            return false;
          }
        }
      }
      return found_t && found_n;
    }
    
    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input) {
      return node_def.op() == "Neg" && node_def.name() == "neg" &&
             node_def.input_size() == 1 && node_def.input(0) == input;
    }
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def) {
      TF_Status* s = TF_NewStatus();
      TF_Buffer* buffer = TF_NewBuffer();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  9. tensorflow/c/eager/gradients.cc

                               GradientFunction* gradient_function,
                               const string& op_name) {
      std::vector<int64_t> input_ids(inputs.size());
      std::vector<tensorflow::DataType> input_dtypes(inputs.size());
      for (int i = 0; i < inputs.size(); i++) {
        input_ids[i] = ToId(inputs[i]);
        input_dtypes[i] = inputs[i]->DataType();
      }
      std::vector<TapeTensor> tape_tensors;
      tape_tensors.reserve(outputs.size());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/grappler/grappler.cc

    }
    
    void TF_InferStatically(TF_GraphProperties* graph_properties,
                            TF_Bool assume_valid_feeds,
                            TF_Bool aggressive_shape_inference,
                            TF_Bool include_input_tensor_values,
                            TF_Bool include_output_tensor_values,
                            TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      absl::Status s =
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
Back to top