Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for vara (0.13 sec)

  1. tensorflow/c/c_api.cc

      if (!ValidateInputWhileParams(*params, status)) return;
    
      TF_Graph* parent = params->cond_graph->parent;
      TF_Output* parent_inputs = params->cond_graph->parent_inputs;
      int num_loop_vars = params->ninputs;
    
      mutex_lock l(parent->mu);
    
      // 'cond_fn' copies the cond graph into the parent graph.
      tensorflow::ops::CondGraphBuilderFn cond_fn =
    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/eager/c_api_cluster_test.cc

      const string dev2_name = "/job:def/replica:0/task:0/device:CPU:0";
      TFE_TensorHandle* var_handle2 = TestVariable(ctx, 2.0, dev2_name);
      EXPECT_NE(var_handle2, nullptr);
      EXPECT_EQ(tensorflow::unwrap(var_handle2)->DeviceName(&status2), dev2_name);
    
      TFE_DeleteTensorHandle(var_handle0);
      TFE_DeleteTensorHandle(var_handle1);
      TFE_DeleteTensorHandle(var_handle2);
    
      TFE_DeleteContext(ctx);
      TF_DeleteStatus(status);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/c_api.cc

        return;
      }
      if (var_info->var_info.var() == nullptr) {
        cc_status = absl::InvalidArgumentError(
            "VariableInfo does not track a resource variable.");
        status->status = cc_status;
        return;
      }
    
      cc_status = cc_ctx->allocate_temp(var_info->var_info.var()->tensor()->dtype(),
                                        var_info->var_info.var()->tensor()->shape(),
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_distributed_test.cc

             "      input_arg {"
             "        name: 'var0'"
             "        type: DT_RESOURCE"
             "      }"
             "      output_arg {"
             "        name: 'var0_value'"
             "        type: DT_FLOAT"
             "      }"
             "    }"
             "    node_def {"
             "      name: 'read0'"
             "      op: 'ReadVariableOp'"
             "      input: 'var0'"
             "      attr {"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      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) {
      // Free the backing buffer for the variable.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test_util.cc

      }
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      TFE_Execute(op, &var_handle, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_DeleteOp(op);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      CHECK_EQ(1, num_retvals);
      TF_DeleteStatus(status);
      return var_handle;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top