Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 355 for attr_ (0.1 sec)

  1. tensorflow/c/experimental/ops/gen/cpp/cpp_generator_test.cc

          "MatMul",     // 2 inputs & attrs with default values
          "IdentityN",  // Variadic input+output
          "SparseSoftmaxCrossEntropyWithLogits",  // 2 outputs
          "AccumulatorApplyGradient",             // 0 outputs
          "VarHandleOp",                          // type, shape, list(string) attrs
          "RestoreV2",  // Variadic output-only, list(type) attr
      };
    
      cpp::CppConfig cpp_config(category, name_space);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 18 17:02:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h

    bool EnsureAttribute(const DictionaryAttr& composite_attributes,
                         const std::string& attr_name, AttrType* out_attr) {
      Attribute attr = composite_attributes.get(attr_name);
      if (!mlir::isa_and_nonnull<AttrType>(attr)) {
        return false;
      }
      if (AttrType content = mlir::dyn_cast<AttrType>(attr)) {
        *out_attr = content;
        return true;
      } else {
        return false;
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/log/slog/internal/benchmarks/handlers.go

    		h.appendTime(buf, r.Time)
    		buf.WriteByte(' ')
    	}
    	buf.WriteString("level=")
    	*buf = strconv.AppendInt(*buf, int64(r.Level), 10)
    	buf.WriteByte(' ')
    	buf.WriteString("msg=")
    	buf.WriteString(r.Message)
    	r.Attrs(func(a slog.Attr) bool {
    		buf.WriteByte(' ')
    		buf.WriteString(a.Key)
    		buf.WriteByte('=')
    		h.appendValue(buf, a.Value)
    		return true
    	})
    	buf.WriteByte('\n')
    	_, err := h.w.Write(*buf)
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/BazelFileContentGenerator.groovy

    def _impl(ctx):
        classes = ",".join(
            [_AsClassName(x) for x in ctx.attr.srcs],
        )
        ctx.actions.write(output = ctx.outputs.out, content = _OUTPUT % (
            classes,
            ctx.attr.outname,
        ))
    
    _GenSuite = rule(
        attrs = {
            "srcs": attr.label_list(allow_files = True),
            "outname": attr.string(),
        },
        outputs = {"out": "%{name}.java"},
        implementation = _impl,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/node_matchers_test.cc

          "to be 0 but found 1");
    }
    
    TEST(NodeMatchers, Attrs) {
      Scope root = Scope::NewRootScope().ExitOnError();
      Output enter = ops::internal::Enter(
          root.WithOpName("enter"),
          ops::Placeholder(root.WithOpName("data"), DT_FLOAT), "frame_name",
          ops::internal::Enter::Attrs{}.IsConstant(true));
      EXPECT_THAT(enter.node(), NodeWith(Attr("is_constant", true)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 14:43:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

      const char* key = pair.getName().data();
      const auto attr = pair.getValue();
    
      if (mlir::isa<::mlir::IntegerAttr>(attr)) {
        fbb->Int(key, mlir::dyn_cast<mlir::IntegerAttr>(attr).getInt());
        return success();
      }
    
      if (mlir::isa<::mlir::FloatAttr>(attr)) {
        fbb->Double(key, mlir::dyn_cast<mlir::FloatAttr>(attr).getValueAsDouble());
        return success();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/html/template/error.go

    	// Examples:
    	//   {{define "main"}}<div {{template "attrs"}}>{{end}}
    	//   {{define "attrs"}}href="{{.URL}}"{{end}}
    	// Discussion:
    	//   Package html/template looks through template calls to compute the
    	//   context.
    	//   Here the {{.URL}} in "attrs" must be treated as a URL when called
    	//   from "main", but you will get this error if "attrs" is not defined
    	//   when "main" is parsed.
    	ErrNoSuchTemplate
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  8. src/log/slog/text_handler.go

    	return h.commonHandler.enabled(level)
    }
    
    // WithAttrs returns a new [TextHandler] whose attributes consists
    // of h's attributes followed by attrs.
    func (h *TextHandler) WithAttrs(attrs []Attr) Handler {
    	return &TextHandler{commonHandler: h.commonHandler.withAttrs(attrs)}
    }
    
    func (h *TextHandler) WithGroup(name string) Handler {
    	return &TextHandler{commonHandler: h.commonHandler.withGroup(name)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/func-attr-invalid.mlir

    A. Unique TensorFlower <******@****.***> 1651827499 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 06 09:05:45 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/ref-type-attr.mlir

    // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
    
    // Verify that attribute T is not set as ref type.
    // CHECK-LABEL: name: "Ref_Variable"
    // CHECK-LABEL: name: "foo"
    // CHECK:      attr {
    // CHECK-NEXT:   key: "T"
    // CHECK-NEXT:   value {
    // CHECK-NEXT:     type: DT_INT32{{$}}
    // CHECK-NEXT:   }
    // CHECK-NEXT: }
    
    func.func @main() {
      tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 775 bytes
    - Viewed (0)
Back to top