Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for val2 (0.16 sec)

  1. tensorflow/c/c_api.cc

      using tensorflow::RecordMutation;
      tensorflow::AttrValue attr_val;
      if (!attr_val.ParseFromArray(attr_value_proto->data,
                                   attr_value_proto->length)) {
        status->status = absl::InvalidArgumentError("Invalid AttrValue proto");
        return;
      }
    
      mutex_lock l(graph->mu);
      op->node.AddAttr(attr_name, attr_val);
      RecordMutation(graph, *op, "setting attribute");
    }
    
    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/math_grad_test.cc

      bool transpose_a_vals[] = {false, false, true, true};
      bool transpose_b_vals[] = {false, true, false, true};
      float dA_vals[4][9] = {{24, 15, 6, 24, 15, 6, 24, 15, 6},
                             {18, 15, 12, 18, 15, 12, 18, 15, 12},
                             {24, 24, 24, 15, 15, 15, 6, 6, 6},
                             {18, 18, 18, 15, 15, 15, 12, 12, 12}};
      float dB_vals[4][9] = {{12, 12, 12, 15, 15, 15, 18, 18, 18},
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_test_util.cc

            found_dtype = true;
          } else {
            return false;
          }
        } else if (attr.first == "value") {
          if (attr.second.has_tensor() &&
              attr.second.tensor().int_val_size() == 1 &&
              attr.second.tensor().int_val(0) == v) {
            found_value = true;
          } else {
            return false;
          }
        }
      }
      return found_dtype && found_value;
    }
    
    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)
  4. tensorflow/c/eager/gradient_checker.cc

      AbstractTensorHandlePtr sum_dims;
      {
        vector<int32_t> vals(num_dims_out);
        int64_t vals_shape[] = {num_dims_out};
        Range(&vals, 0, num_dims_out);
        AbstractTensorHandle* sum_dims_raw = nullptr;
        TF_RETURN_IF_ERROR(TestTensorHandleWithDims<int32_t, TF_INT32>(
            ctx, vals.data(), vals_shape, 1, &sum_dims_raw));
        sum_dims.reset(sum_dims_raw);
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

        // runs are unlikely to clash.
        std::random_device rd;
        std::mt19937 gen(rd());
        std::uniform_int_distribution<> distribution;
        std::string rng_val = std::to_string(distribution(gen));
        return tensorflow::io::JoinPath(std::string(test_dir), rng_val);
      } else {
        return "";
      }
    }
    
    static std::string* GetTmpDir() {
      static std::string tmp_dir = InitializeTmpDir();
      if (tmp_dir == "")
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradient_checker_test.cc

    };
    
    TEST_P(GradientCheckerTest, TestMatMul) {
      float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f};
      int64_t A_dims[] = {2, 2};
      AbstractTensorHandlePtr A;
      {
        AbstractTensorHandle* A_raw;
        Status s = TestTensorHandleWithDims<float, TF_FLOAT>(ctx_.get(), A_vals,
                                                             A_dims, 2, &A_raw);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental_test.cc

             TF_TensorByteSize(result_tensor));
    
      // Build expected result & verify.
      float e_vals[] = {19.0f, 22.0f, 43.0f, 50.0f};
    
      int data_len = 4;  // length of e_vals
      for (int i = 0; i < data_len; i++) {
        EXPECT_EQ(result_data[i], e_vals[i]);
      }
    
      TF_DeleteTensor(result_tensor);
      TF_DeleteAbstractTensor(result);
      TF_DeleteOutputList(o);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/nn_grad_test.cc

      auto ReluGradModel = BuildGradModel(ReluModel, registry_);
    
      float X_vals[] = {1.0f, 2.0f, 3.0f, -5.0f, -4.0f, -3.0f, 2.0f, 10.0f, -1.0f};
      int64_t X_dims[] = {3, 3};
      AbstractTensorHandlePtr X;
      {
        AbstractTensorHandle* X_raw;
        status_ = TestTensorHandleWithDims<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), X_vals, X_dims, 2, &X_raw);
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      for (size_t i = 0; i < values.size(); i++) {
        memset(&option_values[i], 0, sizeof(option_values[i]));
        option_values[i].buffer_val.buf = const_cast<char*>(values[i].c_str());
        option_values[i].buffer_val.buf_length = values[i].size();
      }
      option_value.values = &option_values[0];
      option.value = &option_value;
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

        //        |         |
        //      Const_0    Const_1
        //
        const float const0_val[] = {1.0, 2.0, 3.0, 4.0};
        const float const1_val[] = {1.0, 0.0, 0.0, 1.0};
        TF_Operation* const0 = FloatConst2x2(graph_, s_, const0_val, "Const_0");
        TF_Operation* const1 = FloatConst2x2(graph_, s_, const1_val, "Const_1");
        TF_Operation* matmul = MatMul(graph_, s_, const0, const1, "MatMul");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top