Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetAttrValue (0.1 sec)

  1. tensorflow/c/kernels_test.cc

              << i;
        }
        TF_DeleteStatus(status);
        return static_cast<void*>(s);
      };
    
      AttrValue v;
      std::string attr_in[] = {"bugs", "bunny", "duck"};
      SetAttrValue(gtl::ArraySlice<std::string>(attr_in, 3), &v);
      CreateAndCallKernelWithAttr(my_create_func, "TestKernelAttrStringList", v);
    }
    
    TEST_F(TestKernelAttr, Tensor) {
      struct TensorProtoHelpers {
       public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.cc

    // Annotate eager runtime construction context to the given `function_def` as
    // an attribute.
    void AnnotateEagerRuntimeConstructionContext(
        tensorflow::FunctionDef& function_def) {
      tensorflow::AttrValue value;
      SetAttrValue("kEagerRuntime", &value);
      (*function_def.mutable_attr())["_construction_context"] = value;
    }
    
    }  // namespace
    
    extern "C" {
    
    TFE_ContextOptions* TFE_NewContextOptions() { return new TFE_ContextOptions; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top