Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getFuncAttr (0.78 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

          has_resources = true;
        }
      }
    
      if (!in_order) {
        // Functions do not get reused in practice, so skip the check for if the
        // callee has been updated.
        StringAttr callee_sym = cluster_func_op.getFuncAttr().getAttr();
        MoveResourceArgsToEnd(symtab.lookup<func::FuncOp>(callee_sym));
      }
      builder.setInsertionPoint(cluster_func_op);
      auto xla_launch_op = builder.create<TF::XlaLaunchOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

      return nullptr;
    }
    
    // Returns the function attribute for the given call op which is lifted for
    // quantization.
    inline FlatSymbolRefAttr GetFuncAttr(TF::PartitionedCallOp call_op) {
      return mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr());
    }
    
    inline FlatSymbolRefAttr GetFuncAttr(TF::XlaCallModuleOp call_op) {
      return call_op->getAttrOfType<FlatSymbolRefAttr>(
          TF::kStablehloEntryFunctionAttrName);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

            }
          }
        }
    
        cluster_func_op->setAttr(TF::kDynamicArgIndexAttr,
                                 builder.getI32ArrayAttr(dynamic_shape_arg_index));
    
        FlatSymbolRefAttr func_attr = cluster_func_op.getFuncAttr();
        func::FuncOp func =
            cluster_func_op->getParentOfType<ModuleOp>().lookupSymbol<func::FuncOp>(
                func_attr.getValue());
    
        // Update the marked argument with dynamic shapes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      ASSERT_THAT(main_fn, NotNull());
    
      auto xla_call_module_op = FindOperationOfType<TF::XlaCallModuleOp>(main_fn);
      ASSERT_THAT(xla_call_module_op, NotNull());
    
      FlatSymbolRefAttr xla_call_op_attr = GetFuncAttr(xla_call_module_op);
      EXPECT_EQ(xla_call_op_attr.getValue(), "composite_fn_1");
    }
    
    TEST_F(AttrsAndConstraintsTest, PartitionedCallGetFuncAttr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

            operand_and_idx.value());
        compile_op_operands.emplace_back(shape_op.getResult());
      }
    
      FlatSymbolRefAttr func_attr = cluster_func.getFuncAttr();
      func::FuncOp func =
          cluster_func->getParentOfType<ModuleOp>().lookupSymbol<func::FuncOp>(
              func_attr.getValue());
    
      std::string txt_module;
      if (failed(EncapsulateFuncAndSerialize(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

    //===----------------------------------------------------------------------===//
    
    LogicalResult ClusterFuncOp::verifySymbolUses(
        mlir::SymbolTableCollection& symbolTable) {
      StringAttr func_attr = getFuncAttr().getRootReference();
      func::FuncOp func =
          symbolTable.lookupNearestSymbolFrom<func::FuncOp>(*this, func_attr);
      if (!func) {
        return emitError("'func' attribute refers to an undefined function: ")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top