Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 122 for attr_ (0.28 sec)

  1. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

        absl::Span<
            const std::pair<std::string, FunctionDefHelper::AttrValueWrapper>>
            attrs) {
      NodeDef node;
      node.set_name(std::string(name));
      node.set_op(std::string(op));
      for (const auto& input : inputs) node.add_input(input);
      for (const auto& attr : attrs)
        node.mutable_attr()->insert({attr.first, attr.second.proto});
      return node;
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K 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. 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)
  4. 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)
  5. 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)
  6. tools/istio-iptables/pkg/log/nflog.go

    		if attrs.UID != nil {
    			uid = *attrs.UID
    		}
    		if attrs.GID != nil {
    			gid = *attrs.GID
    		}
    		inDev, outDev := "", ""
    		if attrs.InDev != nil {
    			ii, err := net.InterfaceByIndex(int(*attrs.InDev))
    			if err == nil {
    				inDev = ii.Name
    			}
    		}
    		if attrs.OutDev != nil {
    			ii, err := net.InterfaceByIndex(int(*attrs.OutDev))
    			if err == nil {
    				outDev = ii.Name
    			}
    		}
    		iptablesTrace.WithLabels(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:40 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/tape/tape_operation.cc

      forward_op_.attrs.Set(attr_name, value);
      return parent_op_->SetAttrFloat(attr_name, value);
    }
    Status TapeOperation::SetAttrBool(const char* attr_name, bool value) {
      forward_op_.attrs.Set(attr_name, value);
      return parent_op_->SetAttrBool(attr_name, value);
    }
    Status TapeOperation::SetAttrType(const char* attr_name, DataType value) {
      forward_op_.attrs.Set(attr_name, value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 06:16:45 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. pkg/kubelet/server/auth.go

    	return attrs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc

      auto call_target =
          rewriter.getNamedAttr("call_target_name", op->getName().getIdentifier());
      SmallVector<NamedAttribute> attrs{op->getAttrs()};
      attrs.push_back(call_target);
      auto custom_call = rewriter.create<mlir::stablehlo::CustomCallOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(), attrs);
      rewriter.replaceOp(op, custom_call.getResults());
      return success();
    }
    
    }  // namespace
    
    template <typename OpTy>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 01:14:04 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td

        (TFL_TransposeOp
          (TFL_ResizeBilinearOp
            (TFL_TransposeOp $input,
              (Arith_ConstantOp
                ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)),
            (Arith_ConstantOp:$output_size (GetI32DenseAttr (GetAsVectorAttr<"output"> $attrs))),
            (GetCompositeAttributeAs<"align_corners", "BoolAttr"> $attrs),
            ConstBoolAttrTrue,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top