Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for th (0.23 sec)

  1. tensorflow/c/eager/c_api_test_util.h

      memcpy(TF_TensorData(t), data, TF_TensorByteSize(t));
      TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    // Return a scalar tensor handle with given values.
    template <class T, TF_DataType datatype>
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

          status->status = absl::OkStatus();
          return;
        }
        count++;
      }
      status->status = OutOfRange("Operation only has ", count,
                                  " attributes, can't get the ", i, "th");
    }
    
    void TF_OperationToNodeDef(TF_Operation* oper, TF_Buffer* output_node_def,
                               TF_Status* status) {
      status->status = MessageToBuffer(oper->node.def(), output_node_def);
    }
    
    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)
  3. tensorflow/c/c_api.h

    // `oper` and `num_dims` with the corresponding number of dimensions. On return,
    // for every i where `num_dims[i]` > 0, `dims[i]` will be an array of
    // `num_dims[i]` elements. A value of -1 for `num_dims[i]` indicates that the
    // i-th shape in the list is unknown.
    //
    // The elements of `dims` will point to addresses in `storage` which must be
    // large enough to hold at least `storage_size` int64_ts.  Ideally, `num_shapes`
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  4. tensorflow/c/eager/c_api_test_util.cc

      memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t));
      TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx,
    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)
  5. tensorflow/c/c_api_test.cc

        TF_TString_Init(&data[i]);
        // The following input string length is large enough to make sure that
        // copy to tstring in large mode.
        std::string source =
            "This is the " + std::to_string(i + 1) + "th. data element\n";
        TF_TString_Copy(&data[i], source.c_str(), source.length());
      }
    
      TF_DeleteTensor(t);
    }
    
    }  // namespace
    }  // namespace tensorflow
    
    // TODO(josh11b): Test:
    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)
  6. tensorflow/c/eager/c_api_unified_experimental.h

    void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs, TF_Status*);
    // Return the number of outputs in the list.
    int TF_OutputListNumOutputs(TF_OutputList* o);
    // Return the `i`th output in the list.
    TF_AbstractTensor* TF_OutputListGet(TF_OutputList* o, int i);
    // Append a tensor at the end of the output list, growing its size by one.
    void TF_OutputListPushBack(TF_OutputList* o, TF_AbstractTensor* tensor,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
Back to top